egg-asn1x: Fix crash when parsing invalid DER files
authorStef Walter <stefw@gnome.org>
Mon, 5 Nov 2012 20:24:31 +0000 (21:24 +0100)
committerStef Walter <stefw@gnome.org>
Wed, 7 Nov 2012 22:14:17 +0000 (23:14 +0100)
commit2e11e75e3bcf0e47709959e0eae8c4a8aa295480
treef0b426872a5e9a9236b76c1c1e939be4fbf52a13
parentb271623e5c3044099fdbae8e6037fd23e3eee5e9
egg-asn1x: Fix crash when parsing invalid DER files

 * When parsing invalid DER files and more than one sub-TLV is
   encountered we would do a NULL dereference.
 * Catch this condition and test for it.
egg/egg-asn1x.c
egg/tests/test-asn1.c