diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-21 17:52:44 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-21 17:52:44 +0000 |
commit | 334d424627d50cc4cc73e73954534e23a1f91168 (patch) | |
tree | 8e6527886eee50cea3b9335a35cf192bda236fc3 /lib/libc/regex | |
parent | e0f6fb692ee6ec627ff147b11b0c3840d5446b97 (diff) | |
download | FreeBSD-src-334d424627d50cc4cc73e73954534e23a1f91168.zip FreeBSD-src-334d424627d50cc4cc73e73954534e23a1f91168.tar.gz |
ndis(4): Avoid overflow.
This is a long standing problem: our random() function returns an
unsigned integer but the rand provided by ndis(4) returns an int.
Scale it down.
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/regex')
0 files changed, 0 insertions, 0 deletions