diffutils-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 04/17] maint: zalloc → xzalloc


From: Paul Eggert
Subject: Re: [PATCH 04/17] maint: zalloc → xzalloc
Date: Wed, 12 Jan 2022 12:52:07 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

On 1/12/22 12:29, Eric Blake wrote:
The commit message claims they are all changed to xzalloc, but this
one is changed to xcalloc.

Yes, the commit message should have said they were changed to xzalloc or xcalloc.

Calling xcalloc is better than multiplying and then calling xzalloc, as xcalloc catches and diagnoses multiplication overflow.



reply via email to

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