From c9c15ac3162d10a999bf71418fd710bf5676175e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 21 May 2019 10:19:46 +0200 Subject: wcsmbs: Fix data race in __wcsmbs_clone_conv [BZ #24584] This also adds an overflow check and documents the synchronization requirement in . --- iconv/gconv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iconv') diff --git a/iconv/gconv.h b/iconv/gconv.h index 5ad26c0..7ce79bc 100644 --- a/iconv/gconv.h +++ b/iconv/gconv.h @@ -86,6 +86,8 @@ struct __gconv_step struct __gconv_loaded_object *__shlib_handle; const char *__modname; + /* For internal use by glibc. (Accesses to this member must occur + when the internal __gconv_lock mutex is acquired). */ int __counter; char *__from_name; -- cgit v1.1