summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tmpfile.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-02-26 09:07:55 +0000
committeralfred <alfred@FreeBSD.org>2001-02-26 09:07:55 +0000
commitead0072315c6f8c5d9242385cd07b56512a8ba34 (patch)
treee0bd7be330f90e9b2544a366c1593dcd522c966f /lib/libc/stdio/tmpfile.c
parent9f97905571442c98ead0c97ddd37e19c3af04024 (diff)
downloadFreeBSD-src-ead0072315c6f8c5d9242385cd07b56512a8ba34.zip
FreeBSD-src-ead0072315c6f8c5d9242385cd07b56512a8ba34.tar.gz
Santize a size variable passed to kernel malloc.
Since we know there's always an upper bound we force that bound, otherwise users can cause a panic via malloc getting hit with a odd (huge or negative) amount of memory to allocate. Tested by: kris Pointed out by: Andrey Valyaev <dron@infosec.ru>
Diffstat (limited to 'lib/libc/stdio/tmpfile.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud