1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 09:46:33 +02:00
Files
coreutils/tests/misc/Makefile.am
Jim Meyering b58a8b4ef5 paste -d\\: avoid heap overrun for backslash at end of delim list
* src/paste.c: Include "quotearg.h".
(collapse_escapes): Handle backslash-escaped backslash explicitly.
Handle unescaped backslash at end of string by returning nonzero,
rather than by overrunning memory.
(main): Diagnose an invalid delimiter list -- carefully.
Reported by Cristian Cadar, Daniel Dunbar and Dawson Engler.
* tests/misc/paste-no-nl (delim-bs): Add a test to demonstrate the
heap-smashing capability.
(delim-bs2): Prior to coreutils-5.1.2, this bug was a little harder
to demonstrate: it would corrupt a first-argument containing e.g., \b
* NEWS: Mention the bug fix.
* tests/misc/Makefile.am (TESTS): Reflect renaming.
* tests/misc/paste: Rename from paste-no-nl.

Signed-off-by: Jim Meyering <meyering@redhat.com>
2008-03-27 13:32:38 +01:00

122 lines
2.5 KiB
Makefile

# Make miscellaneous coreutils tests. -*-Makefile-*-
# Copyright (C) 2001-2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
EXTRA_DIST = $(TESTS)
built_programs = \
(cd $(top_builddir)/src && MAKEFLAGS= $(MAKE) -s built_programs.list)
# Do not choose a name that is a shell keyword like 'if', or a
# commonly-used utility like 'cat' or 'test', as the name of a test.
# Otherwise, VPATH builds will fail on hosts like Solaris, since they
# will expand 'if test ...' to 'if .../test ...', and the '.../test'
# will execute the test script rather than the standard utility.
# Ordering:
# help-version comes early because it's a basic sanity test.
# Put seq early, since lots of other tests use it.
# Put head-elide-tail early, because it's long-running.
TESTS = \
help-version \
seq \
head-elide-tail \
ls-time \
ls-misc \
date \
ptx-overrun \
xstrtol \
od \
mktemp \
arch \
pr \
df-P \
pwd-unreadable-parent \
chcon \
chcon-fail \
selinux \
cut \
wc-files0-from \
wc-files0 \
cat-proc \
base64 \
basename \
close-stdout \
csplit \
date-sec \
dircolors \
df \
dirname \
expand \
expr \
factor \
false-status \
fmt \
fmt-long-line \
fold \
groups-dash \
groups-version \
head-c \
head-pos \
md5sum \
md5sum-newline \
mknod \
nice \
nl \
nohup \
od-N \
od-x8 \
paste \
pathchk1 \
printf \
printf-hex \
printf-surprise \
pwd-long \
readlink-fp-loop \
runcon-no-reorder \
sha1sum \
sha1sum-vec \
sha224sum \
sha256sum \
sha384sum \
sha512sum \
shred-exact \
shred-remove \
shuf \
sort-compress \
sort-merge \
sort-rand \
split-a \
split-fail \
split-l \
stat-fmt \
stat-printf \
stty \
stty-invalid \
stty-row-col \
sum \
sum-sysv \
tac-continue \
tee \
tee-dash \
test-diag \
tsort \
tty-eof \
unexpand
include $(top_srcdir)/tests/check.mk