This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add envz_remove to the libc manual
- From: Florian Weimer <fweimer at redhat dot com>
- To: siddhesh at redhat dot com
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 19 Mar 2015 00:42:29 +0100
- Subject: Re: [PATCH] Add envz_remove to the libc manual
- Authentication-results: sourceware.org; auth=none
- References: <20150318082908 dot GH5023 at spoyarek dot pnq dot redhat dot com>
On 03/18/2015 09:29 AM, Siddhesh Poyarekar wrote:
> +@comment envz.h +@comment GNU +@deftypefun {void} envz_remove
> (char **@var{envz}, size_t *@var{envz_len}, const char
> *@var{name}) +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} +The
> @code{envz_remove} function removes an entry named @var{name} from
> +@var{envz}, updating @code{*@var{envz}} and
> @code{*@var{envz_len}}. +@end deftypefun
The safety annotations are incorrect, see envz_add and argz_delete:
@safety{@prelim{}@mtsafe{}@asunsafe{@ascuheap{}}@acunsafe{@acsmem{}}}
@c Calls envz_remove, which calls enz_entry and argz_delete, and then
@c argz_add or equivalent code that reallocs and appends name=value.
@safety{@prelim{}@mtsafe{}@asunsafe{@ascuheap{}}@acunsafe{@acsmem{}}}
@c Calls free if no argument is left.
--
Florian Weimer / Red Hat Product Security