summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-04 15:04:03 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-04 15:04:03 +0200
commitd3ca1b00bd920191f1e15a530a45c19bc3ebd0ef (patch)
tree4ddf6d8dddac66c028af840349bca47ee366a2ce
parent9bed7ad7a65e7a6b1d879ef8f2b5bd8ef244a04d (diff)
downloadlibtasn1-d3ca1b00bd920191f1e15a530a45c19bc3ebd0ef.tar.gz
tests: added check on infinite recursion
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/invalidPKIX.derbin0 -> 704 bytes
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0cd48a3..1cc1810 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -24,7 +24,7 @@ LDADD = ../lib/libtasn1.la ../gl/libgnu.la
EXTRA_DIST = Test_parser.asn Test_tree.asn Test_tree_asn1_tab.c \
Test_encoding.asn pkix.asn TestIndef.p12 choice.asn coding-decoding2.asn \
- TestIndef2.p12 TestIndef3.der TestCertOctetOverflow.der
+ TestIndef2.p12 TestIndef3.der TestCertOctetOverflow.der invalidPKIX.der
# For crlf.
EXTRA_DIST += crlf.cer crl.der ocsp.der
@@ -39,7 +39,7 @@ check_PROGRAMS = Test_parser Test_tree Test_encoding Test_indefinite \
TESTS = Test_parser Test_tree Test_encoding Test_indefinite \
Test_errors Test_simple Test_overflow crlf threadsafety \
Test_strings Test_choice Test_encdec copynode coding-decoding2 \
- strict-der Test_choice_ocsp decoding
+ strict-der Test_choice_ocsp decoding decoding-inf
TESTS_ENVIRONMENT = \
ASN1PARSER=$(srcdir)/Test_parser.asn \
diff --git a/tests/invalidPKIX.der b/tests/invalidPKIX.der
new file mode 100644
index 0000000..6fb540a
--- /dev/null
+++ b/tests/invalidPKIX.der
Binary files differ