[PATCH] vfprintf: Fix memory with large width and precision [BZ #19931]

Florian Weimer fweimer@redhat.com
Thu Apr 14 12:23:00 GMT 2016


On 04/11/2016 05:52 PM, Paul Eggert wrote:
> On 04/11/2016 08:18 AM, Florian Weimer wrote:
>> +      /* Deallocate any previously allocated buffer because it is
>> +         too small.  */
>> +      if (workstart != NULL)
>> +        {
>> +          free (workstart);
>> +          workstart = NULL;
>> +        }
>
> Other places in that function use this code instead:
>
>      if (__glibc_unlikely (workstart != NULL))
>        free (workstart);
>      workstart = NULL;
>
> Is there some reason to do things differently here?

Here's an updated patch.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vfprintf-Fix-memory-with-large-width-and-precision-B.patch
Type: text/x-patch
Size: 4848 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160414/538f286a/attachment.bin>


More information about the Libc-alpha mailing list