about summary refs log tree commit diff
path: root/hurd/vpprintf.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2015-07-11 17:44:10 +0200
committerMike Frysinger <vapier@gentoo.org>2016-02-16 14:16:00 -0500
commit24772ea8cd098a39bffe623417a2fa15f53d9ec8 (patch)
tree5a80e122f38213dbb13d38504b0f0574bc1ca9f9 /hurd/vpprintf.c
parent29c2af3215ff6670058948d1837c786a6884667f (diff)
downloadglibc-24772ea8cd098a39bffe623417a2fa15f53d9ec8.tar.gz
glibc-24772ea8cd098a39bffe623417a2fa15f53d9ec8.tar.xz
glibc-24772ea8cd098a39bffe623417a2fa15f53d9ec8.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)
(cherry picked from commit 43f189b0032fbce67fc0c0f4e122e917cd232670)
Diffstat (limited to 'hurd/vpprintf.c')
0 files changed, 0 insertions, 0 deletions