This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MT-safe annotations for gcvt and related functions


gcvt is declared in the manual as:

@deftypefun {char *} gcvt (double @var{value}, int @var{ndigit}, char *@var{buf})
@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}

I think that's incorrect because it's implemented in terms of (locale-dependent, not async-safe etc.) sprintf. The preprocessor logic in is a bit difficult to follow, but some of the gcvt-related functions even call malloc directly.

--
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]