diff options
author | otto <> | 2012-02-29 08:44:14 +0000 |
---|---|---|
committer | otto <> | 2012-02-29 08:44:14 +0000 |
commit | 2048c83ec9c46a639c6d4f4d7e55a85d6ade4952 (patch) | |
tree | af2481c3937982c91dc0206e8088e6a74cf4a4ef /src/lib/libc/stdlib/random.c | |
parent | bdfe5c4d35216bdc017e73d1368140ed9d18bec5 (diff) | |
download | openbsd-2048c83ec9c46a639c6d4f4d7e55a85d6ade4952.tar.gz openbsd-2048c83ec9c46a639c6d4f4d7e55a85d6ade4952.tar.bz2 openbsd-2048c83ec9c46a639c6d4f4d7e55a85d6ade4952.zip |
- Test for the retrieved page address not being NULL. This turns free((void*)1)
into an bogus pointer error instead of a segfault.
- Document that we use the assumption that a non-MAP_FIXED mmap() with
hint 0 never returns NULL.
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions