[PATCH][BZ #18240] Handle overflow in __hcreate_r

Siddhesh Poyarekar siddhesh@redhat.com
Wed Jul 15 11:16:00 GMT 2015


On Sat, Jul 11, 2015 at 05:44:10PM +0200, Ondřej Bílka wrote:
> Hi,
> 
> As in bugzilla entry there is overflow in hsearch when looking for prime
> number as SIZE_MAX - 1 is divisible by 5. We fix that by rejecting large
> inputs before looking for prime.

Looks OK to me.

Siddhesh



More information about the Libc-alpha mailing list