bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26364: [PATCH] Handle possible NULL return value of tzalloc.


From: Pádraig Brady
Subject: bug#26364: [PATCH] Handle possible NULL return value of tzalloc.
Date: Tue, 4 Apr 2017 19:33:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 04/04/17 13:04, Tobias Stoeckmann wrote:
> The function tzalloc of gnulib can return NULL. It uses malloc()
> internally and forwards its possible NULL value to the caller.
> 
> As other gnulib functions rely on that behaviour, it cannot be simply
> exchanged with an error-calling malloc alternative.
> 
> Take possible NULL return value into account in the programs instead.

A quick scan shows that functions using tz handle the NULL case,
falling back to default behavior.  Paul's the expert on this...

thanks!
Pádraig






reply via email to

[Prev in Thread] Current Thread [Next in Thread]