GNU bug report logs -
#16171
ptx: heap buffer overrun, when run with two file arguments
Previous Next
Reported by: Jim Meyering <jim <at> meyering.net>
Date: Tue, 17 Dec 2013 02:24:02 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 16171 <at> debbugs.gnu.org (full text, mbox):
On 04/28/2014 03:52 PM, Pádraig Brady wrote:
> diff --git a/tests/misc/ptx-overrun.sh b/tests/misc/ptx-overrun.sh
> +# Trigger an invalid heap reference noticed by gcc -fsanitize=address
> +# from coreutils-8.22 and earlier. As well as an invalid memory reference,
> +# the issue can be seen in the output, with invalid whitespace trimming
> +# when multiple files are specified.
> +printf '%s\n' 'This is a ptx whitespace Trimming test' > ws.in
> +ptx ws.in ws.in | sort | uniq -u > out
> +compare /dev/null out || fail=1
Isn't this a user-visible change, i.e., worth a NEWS entry?
+1 otherwise.
BTW: I noticed that v8.21 produces a different result than v8.22:
$ /tmp/cu/coreutils-8.21/src/ptx ws.in ws.in | sort | uniq -u
test This is a ptx whitespace Trimming
test This is a ptx whitespace Trimming
$ /tmp/cu/coreutils-8.22/src/ptx ws.in ws.in | sort | uniq -u
is a ptx whitespace Trimming test This
is a ptx whitespace Trimming test This
... although there hasn't been a change in src/ptx.c - or I don't see it:
"git diff -r v8.21..v8.22 src/ptx.c" only shows a change in usage().
Any idea why?
Have a nice day,
Berny
This bug report was last modified 11 years and 82 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.