On Tue, Mar 17, 2020 at 09:08:24PM +0100, Tim Duesterhus wrote:
> The behavior of calloc() when being passed `0` as `nelem` is implementation
> defined. It may return a NULL pointer.
> 
> Avoid this issue by checking before allocating. While doing so adjust the 
> local
> integer variables that are used to refer to memory offsets to `size_t`.
> 
> This issue was introced in commit f91ac19299fe216a793ba6550dca06b688b31549. 
> This
> patch should be backported together with that commit.

Applied, thank you Tim!

Willy

Reply via email to