summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-02-12 16:41:07 +0000
committerotto <otto@openbsd.org>2007-02-12 16:41:07 +0000
commit887c4461ff8cbc4f119137dc4a1cdf546473b18a (patch)
tree86cb71b124b0bdb22c2bbf4786bae61ba4bce794 /lib/libc/stdlib/malloc.c
parentdetect truncation of block number, which can happen which trashed (diff)
downloadwireguard-openbsd-887c4461ff8cbc4f119137dc4a1cdf546473b18a.tar.xz
wireguard-openbsd-887c4461ff8cbc4f119137dc4a1cdf546473b18a.zip
remsize must be signed to avoid wrapping around to some huge number.
Solves a case were fsck_ffs was causing a segv. If it didn't do that it would have mangled the filesystem later, very probably. Diff from FreeBSD; ok millert@ pedro@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions