diff options
author | jsing <> | 2014-04-30 13:51:58 +0000 |
---|---|---|
committer | jsing <> | 2014-04-30 13:51:58 +0000 |
commit | e057e887f1eef8891aeac46e0ea55f94393b6a9f (patch) | |
tree | c01f5f9db1f07d63106685be1f6db9f346311ca2 /src/lib/libc/stdlib/malloc.c | |
parent | 51d25ffbc5935a343926814f8f292b9e1e4039ae (diff) | |
download | openbsd-e057e887f1eef8891aeac46e0ea55f94393b6a9f.tar.gz openbsd-e057e887f1eef8891aeac46e0ea55f94393b6a9f.tar.bz2 openbsd-e057e887f1eef8891aeac46e0ea55f94393b6a9f.zip |
Avoid a potential null pointer dereference by checking that we actually
managed to allocate a fragment, before trying to memcpy data into it.
ok miod@
Diffstat (limited to 'src/lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions