Hello community, here is the log from the commit of package libtasn1 for openSUSE:Factory checked in at 2015-05-05 00:54:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libtasn1 (Old) and /work/SRC/openSUSE:Factory/.libtasn1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtasn1" Changes: -------- --- /work/SRC/openSUSE:Factory/libtasn1/libtasn1.changes 2015-04-02 16:01:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libtasn1.new/libtasn1.changes 2015-05-05 00:54:47.000000000 +0200 @@ -1,0 +2,7 @@ +Fri May 1 19:33:32 UTC 2015 - [email protected] + +- update libtasn1 4.5: + * Corrected an invalid memory access in octet string decoding. + CVE-2015-3622 [boo#929414] + +------------------------------------------------------------------- @@ -5,0 +13 @@ + CVE-2015-2806 Old: ---- libtasn1-4.4.tar.gz libtasn1-4.4.tar.gz.sig New: ---- libtasn1-4.5.tar.gz libtasn1-4.5.tar.gz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libtasn1.spec ++++++ --- /var/tmp/diff_new_pack.q7ISwN/_old 2015-05-05 00:54:48.000000000 +0200 +++ /var/tmp/diff_new_pack.q7ISwN/_new 2015-05-05 00:54:48.000000000 +0200 @@ -18,7 +18,7 @@ %define somajor 6 Name: libtasn1 -Version: 4.4 +Version: 4.5 Release: 0 Summary: ASN.1 parsing library License: LGPL-2.1+ and GPL-3.0 ++++++ libtasn1-4.4.tar.gz -> libtasn1-4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/NEWS new/libtasn1-4.5/NEWS --- old/libtasn1-4.4/NEWS 2015-03-29 11:59:03.000000000 +0200 +++ new/libtasn1-4.5/NEWS 2015-04-29 20:55:26.000000000 +0200 @@ -1,5 +1,9 @@ GNU Libtasn1 NEWS -*- outline -*- +* Noteworthy changes in release 4.5 (released 2015-04-29) [stable] +- Corrected an invalid memory access in octet string decoding. + Reported by Hanno Böck. + * Noteworthy changes in release 4.4 (released 2015-03-29) [stable] - Corrected a two-byte stack overflow in asn1_der_decoding. Reported by Hanno Böck. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/configure new/libtasn1-4.5/configure --- old/libtasn1-4.4/configure 2015-03-29 11:59:32.000000000 +0200 +++ new/libtasn1-4.5/configure 2015-04-29 20:55:53.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for GNU Libtasn1 4.4. +# Generated by GNU Autoconf 2.69 for GNU Libtasn1 4.5. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='GNU Libtasn1' PACKAGE_TARNAME='libtasn1' -PACKAGE_VERSION='4.4' -PACKAGE_STRING='GNU Libtasn1 4.4' +PACKAGE_VERSION='4.5' +PACKAGE_STRING='GNU Libtasn1 4.5' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='http://www.gnu.org/software/libtasn1/' @@ -1882,7 +1882,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures GNU Libtasn1 4.4 to adapt to many kinds of systems. +\`configure' configures GNU Libtasn1 4.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1952,7 +1952,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of GNU Libtasn1 4.4:";; + short | recursive ) echo "Configuration of GNU Libtasn1 4.5:";; esac cat <<\_ACEOF @@ -2080,7 +2080,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -GNU Libtasn1 configure 4.4 +GNU Libtasn1 configure 4.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2732,7 +2732,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by GNU Libtasn1 $as_me 4.4, which was +It was created by GNU Libtasn1 $as_me 4.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3609,7 +3609,7 @@ # Define the identity of the package. PACKAGE='libtasn1' - VERSION='4.4' + VERSION='4.5' cat >>confdefs.h <<_ACEOF @@ -3748,7 +3748,7 @@ # Interfaces removed: AGE=0 LT_CURRENT=10 -LT_REVISION=1 +LT_REVISION=2 LT_AGE=4 @@ -21957,7 +21957,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by GNU Libtasn1 $as_me 4.4, which was +This file was extended by GNU Libtasn1 $as_me 4.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -22029,7 +22029,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -GNU Libtasn1 config.status 4.4 +GNU Libtasn1 config.status 4.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/configure.ac new/libtasn1-4.5/configure.ac --- old/libtasn1-4.4/configure.ac 2015-03-29 11:59:14.000000000 +0200 +++ new/libtasn1-4.5/configure.ac 2015-04-29 20:54:37.000000000 +0200 @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ([2.61]) -AC_INIT([GNU Libtasn1],[4.4],[[email protected]]) +AC_INIT([GNU Libtasn1],[4.5],[[email protected]]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS(config.h) @@ -29,7 +29,7 @@ # Interfaces added: AGE++ # Interfaces removed: AGE=0 AC_SUBST(LT_CURRENT, 10) -AC_SUBST(LT_REVISION, 1) +AC_SUBST(LT_REVISION, 2) AC_SUBST(LT_AGE, 4) AC_PROG_CC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/asn1Coding.1 new/libtasn1-4.5/doc/asn1Coding.1 --- old/libtasn1-4.4/doc/asn1Coding.1 2015-03-29 11:59:48.000000000 +0200 +++ new/libtasn1-4.5/doc/asn1Coding.1 2015-04-29 20:56:04.000000000 +0200 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.5. -.TH ASN1CODING "1" "March 2015" "asn1Coding (libtasn1) 4.4" "User Commands" +.TH ASN1CODING "1" "April 2015" "asn1Coding (libtasn1) 4.4" "User Commands" .SH NAME asn1Coding \- ASN.1 DER encoder .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/asn1Decoding.1 new/libtasn1-4.5/doc/asn1Decoding.1 --- old/libtasn1-4.4/doc/asn1Decoding.1 2015-03-29 11:59:48.000000000 +0200 +++ new/libtasn1-4.5/doc/asn1Decoding.1 2015-04-29 20:56:04.000000000 +0200 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.5. -.TH ASN1DECODING "1" "March 2015" "asn1Decoding (libtasn1) 4.4" "User Commands" +.TH ASN1DECODING "1" "April 2015" "asn1Decoding (libtasn1) 4.4" "User Commands" .SH NAME asn1Decoding \- ASN.1 DER decoder .SH SYNOPSIS @@ -9,6 +9,12 @@ Decodes DER data in ENCODED file, for the ASN1TYPE element described in ASN.1 DEFINITIONS file, and print decoded structures. .TP +\fB\-b\fR, \fB\-\-benchmark\fR +perform a benchmark on decoding +.TP +\fB\-s\fR, \fB\-\-strict\fR +use strict DER decoding +.TP \fB\-h\fR, \fB\-\-help\fR display this help and exit .TP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/asn1Parser.1 new/libtasn1-4.5/doc/asn1Parser.1 --- old/libtasn1-4.4/doc/asn1Parser.1 2015-03-29 11:59:48.000000000 +0200 +++ new/libtasn1-4.5/doc/asn1Parser.1 2015-04-29 20:56:04.000000000 +0200 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.5. -.TH ASN1PARSER "1" "March 2015" "asn1Parser (libtasn1) 4.4" "User Commands" +.TH ASN1PARSER "1" "April 2015" "asn1Parser (libtasn1) 4.4" "User Commands" .SH NAME asn1Parser \- ASN.1 syntax tree generator for libtasn1 .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/libtasn1.info new/libtasn1-4.5/doc/libtasn1.info --- old/libtasn1-4.4/doc/libtasn1.info 2015-03-29 12:00:23.000000000 +0200 +++ new/libtasn1-4.5/doc/libtasn1.info 2015-04-29 20:56:05.000000000 +0200 @@ -1,7 +1,7 @@ This is libtasn1.info, produced by makeinfo version 5.2 from libtasn1.texi. -This manual is for GNU Libtasn1 (version 4.4, 9 March 2015), which is a +This manual is for GNU Libtasn1 (version 4.5, 9 March 2015), which is a library for Abstract Syntax Notation One (ASN.1) and Distinguished Encoding Rules (DER) manipulation. @@ -24,7 +24,7 @@ Libtasn1 ******** -This manual is for GNU Libtasn1 (version 4.4, 9 March 2015), which is a +This manual is for GNU Libtasn1 (version 4.5, 9 March 2015), which is a library for Abstract Syntax Notation One (ASN.1) and Distinguished Encoding Rules (DER) manipulation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/stamp-vti new/libtasn1-4.5/doc/stamp-vti --- old/libtasn1-4.4/doc/stamp-vti 2015-03-29 11:59:48.000000000 +0200 +++ new/libtasn1-4.5/doc/stamp-vti 2015-04-29 20:56:04.000000000 +0200 @@ -1,4 +1,4 @@ @set UPDATED 9 March 2015 @set UPDATED-MONTH March 2015 -@set EDITION 4.4 -@set VERSION 4.4 +@set EDITION 4.5 +@set VERSION 4.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/doc/version.texi new/libtasn1-4.5/doc/version.texi --- old/libtasn1-4.4/doc/version.texi 2015-03-29 11:59:48.000000000 +0200 +++ new/libtasn1-4.5/doc/version.texi 2015-04-29 20:56:04.000000000 +0200 @@ -1,4 +1,4 @@ @set UPDATED 9 March 2015 @set UPDATED-MONTH March 2015 -@set EDITION 4.4 -@set VERSION 4.4 +@set EDITION 4.5 +@set VERSION 4.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/lib/decoding.c new/libtasn1-4.5/lib/decoding.c --- old/libtasn1-4.4/lib/decoding.c 2015-03-09 21:46:37.000000000 +0100 +++ new/libtasn1-4.5/lib/decoding.c 2015-04-29 20:53:27.000000000 +0200 @@ -732,6 +732,7 @@ return ASN1_DER_ERROR; counter = len3 + 1; + DECR_LEN(der_len, len3); if (len2 == -1) counter_end = der_len - 2; @@ -740,6 +741,7 @@ while (counter < counter_end) { + DECR_LEN(der_len, 1); len2 = asn1_get_length_der (der + counter, der_len, &len3); if (IS_ERR(len2, flags)) @@ -764,7 +766,6 @@ len2 = 0; } - DECR_LEN(der_len, 1); counter += len2 + len3 + 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/lib/libtasn1.h new/libtasn1-4.5/lib/libtasn1.h --- old/libtasn1-4.4/lib/libtasn1.h 2015-03-29 11:59:37.000000000 +0200 +++ new/libtasn1-4.5/lib/libtasn1.h 2015-04-29 20:55:55.000000000 +0200 @@ -44,7 +44,7 @@ { #endif -#define ASN1_VERSION "4.4" +#define ASN1_VERSION "4.5" #if defined(__GNUC__) && !defined(ASN1_INTERNAL_BUILD) # define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/src/asn1Decoding.c new/libtasn1-4.5/src/asn1Decoding.c --- old/libtasn1-4.4/src/asn1Decoding.c 2014-11-14 20:53:32.000000000 +0100 +++ new/libtasn1-4.5/src/asn1Decoding.c 2015-04-29 20:53:27.000000000 +0200 @@ -34,7 +34,7 @@ #include "benchmark.h" static int decode (asn1_node definitions, const char *typeName, void *der, - int der_len, int benchmark); + int der_len, int benchmark, int strict); /* This feature is available in gcc versions 2.5 and later. */ #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) @@ -57,6 +57,8 @@ described in ASN.1 DEFINITIONS file, and print decoded structures.\n\ \n"); printf ("\ + -b, --benchmark perform a benchmark on decoding\n\ + -s, --strict use strict DER decoding\n\ -h, --help display this help and exit\n\ -v, --version output version information and exit\n"); emit_bug_reporting_address (); @@ -69,6 +71,9 @@ { static const struct option long_options[] = { {"help", no_argument, 0, 'h'}, + {"strict", no_argument, 0, 's'}, + {"debug", no_argument, 0, 'd'}, + {"benchmark", no_argument, 0, 'b'}, {"version", no_argument, 0, 'v'}, {0, 0, 0, 0} }; @@ -82,6 +87,7 @@ int asn1_result = ASN1_SUCCESS; unsigned char *der; int der_len = 0, benchmark = 0; + int strict = 0, debug = 0; /* FILE *outputFile; */ set_program_name (argv[0]); @@ -92,7 +98,7 @@ { option_result = - getopt_long (argc, argv, "hbvc", long_options, &option_index); + getopt_long (argc, argv, "hbdsvc", long_options, &option_index); if (option_result == -1) break; @@ -105,6 +111,12 @@ case 'b': benchmark = 1; break; + case 'd': + debug = 1; + break; + case 's': + strict = 1; + break; case 'v': /* VERSION */ version_etc (stdout, program_name, PACKAGE, VERSION, "Fabio Fiorina", NULL); @@ -174,6 +186,12 @@ der_len = tmplen; } + /* read_binary_file() returns a buffer with more data than required, + * with this reallocation we ensure that memory accesses outside the + * boundaries are detected */ + if (der != NULL && debug != 0) + der = realloc(der, der_len); + if (der == NULL) { fprintf (stderr, "asn1Decoding: could not read '%s'\n", @@ -186,7 +204,6 @@ exit (1); } - /*****************************************/ /* ONLY FOR TEST */ /*****************************************/ @@ -202,7 +219,7 @@ fclose(inputFile); */ - if (decode (definitions, typeName, der, der_len, benchmark) != ASN1_SUCCESS) + if (decode (definitions, typeName, der, der_len, benchmark, strict) != ASN1_SUCCESS) { asn1_delete_structure (&definitions); free (inputFileAsnName); @@ -228,7 +245,7 @@ static int simple_decode (asn1_node definitions, const char *typeName, void *der, - int der_len, int benchmark) + int der_len, int benchmark, int strict) { int asn1_result; @@ -248,8 +265,12 @@ return asn1_result; } - asn1_result = - asn1_der_decoding (&structure, der, der_len, errorDescription); + if (strict != 0) + asn1_result = + asn1_der_decoding2(&structure, der, &der_len, ASN1_DECODE_FLAG_STRICT_DER, errorDescription); + else + asn1_result = + asn1_der_decoding (&structure, der, der_len, errorDescription); if (!benchmark) fprintf (stderr, "\nDecoding: %s\n", asn1_strerror (asn1_result)); @@ -272,19 +293,19 @@ static int decode (asn1_node definitions, const char *typeName, void *der, int der_len, - int benchmark) + int benchmark, int strict) { struct benchmark_st st; if (benchmark == 0) - return simple_decode (definitions, typeName, der, der_len, benchmark); + return simple_decode (definitions, typeName, der, der_len, benchmark, strict); else { start_benchmark (&st); do { - simple_decode (definitions, typeName, der, der_len, benchmark); + simple_decode (definitions, typeName, der, der_len, benchmark, strict); st.size++; } while (benchmark_must_finish == 0); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/tests/Makefile.am new/libtasn1-4.5/tests/Makefile.am --- old/libtasn1-4.4/tests/Makefile.am 2015-03-09 23:03:26.000000000 +0100 +++ new/libtasn1-4.5/tests/Makefile.am 2015-04-29 20:53:27.000000000 +0200 @@ -24,13 +24,11 @@ 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 + TestIndef2.p12 TestIndef3.der TestCertOctetOverflow.der # For crlf. EXTRA_DIST += crlf.cer crl.der ocsp.der -dist_check_SCRIPTS = crlf benchmark - -dist_check_SCRIPTS += threadsafety +dist_check_SCRIPTS = crlf benchmark threadsafety decoding MOSTLYCLEANFILES = Test_parser_ERROR.asn @@ -41,7 +39,7 @@ 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 + strict-der Test_choice_ocsp decoding TESTS_ENVIRONMENT = \ ASN1PARSER=$(srcdir)/Test_parser.asn \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/tests/Makefile.in new/libtasn1-4.5/tests/Makefile.in --- old/libtasn1-4.4/tests/Makefile.in 2015-03-29 11:59:33.000000000 +0200 +++ new/libtasn1-4.5/tests/Makefile.in 2015-04-29 20:55:54.000000000 +0200 @@ -107,7 +107,7 @@ Test_strings$(EXEEXT) Test_choice$(EXEEXT) \ Test_encdec$(EXEEXT) copynode$(EXEEXT) \ coding-decoding2$(EXEEXT) strict-der$(EXEEXT) \ - Test_choice_ocsp$(EXEEXT) + Test_choice_ocsp$(EXEEXT) decoding subdir = tests DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(dist_check_SCRIPTS) $(top_srcdir)/build-aux/depcomp \ @@ -1154,9 +1154,9 @@ # For crlf. 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 crlf.cer \ - crl.der ocsp.der -dist_check_SCRIPTS = crlf benchmark threadsafety + coding-decoding2.asn TestIndef2.p12 TestIndef3.der \ + TestCertOctetOverflow.der crlf.cer crl.der ocsp.der +dist_check_SCRIPTS = crlf benchmark threadsafety decoding MOSTLYCLEANFILES = Test_parser_ERROR.asn TESTS_ENVIRONMENT = \ ASN1PARSER=$(srcdir)/Test_parser.asn \ @@ -1627,6 +1627,13 @@ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +decoding.log: decoding + @p='decoding'; \ + b='decoding'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ Files old/libtasn1-4.4/tests/TestCertOctetOverflow.der and new/libtasn1-4.5/tests/TestCertOctetOverflow.der differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtasn1-4.4/tests/decoding new/libtasn1-4.5/tests/decoding --- old/libtasn1-4.4/tests/decoding 1970-01-01 01:00:00.000000000 +0100 +++ new/libtasn1-4.5/tests/decoding 2015-04-29 20:53:27.000000000 +0200 @@ -0,0 +1,31 @@ +#!/bin/sh + +# Copyright (C) 2015 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/>. + +if ! test -z "${VALGRIND}";then +VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=7 --leak-check=no" +fi + +ASN1DECODING="${ASN1DECODING:-../src/asn1Decoding$EXEEXT}" +ASN1PKIX="${ASN1PKIX:-pkix.asn}" + +$VALGRIND $ASN1DECODING -ds $ASN1PKIX TestCertOctetOverflow.der PKIX1.Certificate +if test $? != 1;then + echo "Decoding failed" + exit 1 +fi + +exit 0
