summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2014-11-24 17:01:29 +0000
committerotto <otto@openbsd.org>2014-11-24 17:01:29 +0000
commit35da6c2d5b1234c4dde7291d01016a7da9f18b2a (patch)
treec57909e549db97de2eac5e94e98d3c72a572d7dd
parentDo not attempt to dereference NULL pointers when encountering an empty SCSI (diff)
downloadwireguard-openbsd-35da6c2d5b1234c4dde7291d01016a7da9f18b2a.tar.xz
wireguard-openbsd-35da6c2d5b1234c4dde7291d01016a7da9f18b2a.zip
add a (currently crashing) test case by Sebastien Marie
-rw-r--r--regress/usr.bin/dc/Makefile5
-rw-r--r--regress/usr.bin/dc/t27.in1
-rw-r--r--regress/usr.bin/dc/t27.out0
3 files changed, 4 insertions, 2 deletions
diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile
index 55bbe888d2f..0d6d0209081 100644
--- a/regress/usr.bin/dc/Makefile
+++ b/regress/usr.bin/dc/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.17 2005/12/13 19:29:43 otto Exp $
+# $OpenBSD: Makefile,v 1.18 2014/11/24 17:01:29 otto Exp $
DC=dc -x
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \
- t18 t19 t20 t21 t22 t23 t24 t25 t26
+ t18 t19 t20 t21 t22 t23 t24 t25 t26 t27
# .in: input file
# .out: desired result
@@ -34,6 +34,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \
# t24: line continuations
# t25: exp
# t26: non-decimal fractions
+# t27: fix a double free
all: clean ${REGRESS_TARGET}
diff --git a/regress/usr.bin/dc/t27.in b/regress/usr.bin/dc/t27.in
new file mode 100644
index 00000000000..05d87ec344c
--- /dev/null
+++ b/regress/usr.bin/dc/t27.in
@@ -0,0 +1 @@
+1 2:x1Lx1:x1:x
diff --git a/regress/usr.bin/dc/t27.out b/regress/usr.bin/dc/t27.out
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regress/usr.bin/dc/t27.out