Only access offset if canaries are enabled *and* size > 0, otherwise offset
authorotto <otto@openbsd.org>
Fri, 7 Jul 2017 19:14:46 +0000 (19:14 +0000)
committerotto <otto@openbsd.org>
Fri, 7 Jul 2017 19:14:46 +0000 (19:14 +0000)
commitb73b8be164d17d37d91f485eea3dd27513733ab7
treea06e87a31e7b8f00b98c5555e9cb459bf9ced9be
parent8b65095eda63c20f9c618725b21233792206bab1
Only access offset if canaries are enabled *and* size > 0, otherwise offset
is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
lib/libc/stdlib/malloc.c