This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
MT-safe annotations for gcvt and related functions
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: Alexandre Oliva <aoliva at redhat dot com>
- Date: Fri, 12 Dec 2014 12:00:41 +0100
- Subject: MT-safe annotations for gcvt and related functions
- Authentication-results: sourceware.org; auth=none
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