This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] locale: don't crash if locale-archive is an empty file


On Friday 29 November 2013 10:39:21 Aurelien Jarno wrote:
> +  /* Avoid division by 0 if the file is corrupted.  */
> +  if (__builtin_expect (head->namehash_size == 0, 0))
> +    goto close_and_out;

we have __glibc_unlikely now.  we shouldn't use __builtin_expect directly 
anymore.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]