summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-09-15 08:42:06 +0000
committeradrian <adrian@FreeBSD.org>2011-09-15 08:42:06 +0000
commitf23b1f625d09ffd3a8da3c62c0b6305e9c42119d (patch)
treef2172f5c1ff46d006888811bb7b1f7265455d37c /lib/libc/stdlib/random.c
parentb3c2a1450629f5cb9384bf41c77bd7011a6eba5e (diff)
downloadFreeBSD-src-f23b1f625d09ffd3a8da3c62c0b6305e9c42119d.zip
FreeBSD-src-f23b1f625d09ffd3a8da3c62c0b6305e9c42119d.tar.gz
Ensure that ta_pending doesn't overflow u_short by capping its value at USHRT_MAX.
If it overflows before the taskqueue can run, the task will be re-added to the taskqueue and cause a loop in the task list. Reported by: Arnaud Lacombe <lacombar@gmail.com> Submitted by: Ryan Stone <rysto32@gmail.com> Reviewed by: jhb Approved by: re (kib) MFC after: 1 day
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud