]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
authorJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 06:28:01 +0000 (06:28 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 06:28:01 +0000 (06:28 +0000)
commit6ffc95a9e32aa394f75dfd67c79d3c2bd15c034a
treebac091e977d925facba6fb95e916c887df39c889
parent26809f0450870a3eb5b985069a6355241d98aa18
(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
to avoid potential overflow in pointer arithmetic.
(set_fields): Use not `1', but rather `sizeof *printable_field' as
second argument to xcalloc.
src/cut.c