diff options
author | millert <> | 2002-06-26 06:03:31 +0000 |
---|---|---|
committer | millert <> | 2002-06-26 06:03:31 +0000 |
commit | b88d7a5cb2b7d6387d1028751a707f2097b0269c (patch) | |
tree | e7eda0368471d0c1dc979139a81e28a49589c79d /src/lib/libc/stdlib/calloc.c | |
parent | 62efc4ddcbdcc8c9f4f29b7b5ae76aa66f0b96e2 (diff) | |
download | openbsd-b88d7a5cb2b7d6387d1028751a707f2097b0269c.tar.gz openbsd-b88d7a5cb2b7d6387d1028751a707f2097b0269c.tar.bz2 openbsd-b88d7a5cb2b7d6387d1028751a707f2097b0269c.zip |
avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>
correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen). we eliminate buflen and use
fixed point (ep) as the ending pointer. From: itojun
this fix is critical.
Diffstat (limited to 'src/lib/libc/stdlib/calloc.c')
0 files changed, 0 insertions, 0 deletions