diff options
author | adrian <adrian@FreeBSD.org> | 2011-09-15 08:42:06 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-09-15 08:42:06 +0000 |
commit | f23b1f625d09ffd3a8da3c62c0b6305e9c42119d (patch) | |
tree | f2172f5c1ff46d006888811bb7b1f7265455d37c /lib/libc/stdlib/random.c | |
parent | b3c2a1450629f5cb9384bf41c77bd7011a6eba5e (diff) | |
download | FreeBSD-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