]> git.ipfire.org Git - thirdparty/coreutils.git/commit
[!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
authorJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 03:47:04 +0000 (03:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 03:47:04 +0000 (03:47 +0000)
commitfebf70b73ffa2a61117e9bade6400d19e6f49344
treecde4263f07105b78a4e72c18954e42a44c445f19
parentb5a71af82a6b7374b180a65e29421758e4afe129
[!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
(checkfp): Fix off-by-one error that resulted in writing one byte
beyond the end of a malloc'd buffer.  It caused `sort -c' to segfault
on Linux systems having a relatively recent libc.  Before, running
the command, perl -e "print 'x' x 30, \"\n\";"|sort -c
would provoke the memory overrun (though not necessarily the failure).
Add an assertion.
src/sort.c