about summary refs log tree commit diff
path: root/stdio-common/tst-ungetc.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2015-07-11 17:44:10 +0200
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-05-24 11:36:36 -0300
commit03e3ee42d64388243aed95b7702007640dcdd5b5 (patch)
treefec0cb2bbf9dfbd7d2e4fc82ceec8ad098b2ed7e /stdio-common/tst-ungetc.c
parent3822125d1c520d5bb5e33cd9254a902d52d4eb19 (diff)
downloadglibc-03e3ee42d64388243aed95b7702007640dcdd5b5.tar.gz
glibc-03e3ee42d64388243aed95b7702007640dcdd5b5.tar.xz
glibc-03e3ee42d64388243aed95b7702007640dcdd5b5.zip
Handle overflow in __hcreate_r
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.

	* misc/hsearch_r.c (__hcreate_r): Handle overflow.

(cherry picked from commit 2f5c1750558fe64bac361f52d6827ab1bcfe52bc)
Diffstat (limited to 'stdio-common/tst-ungetc.c')
0 files changed, 0 insertions, 0 deletions