boringssl/crypto/test
David Benjamin fb2c6f8c85 ASN1_get_object should not accept large universal tags.
The high bits of the type get used for the V_ASN1_NEG bit, so when used with
ASN1_ANY/ASN1_TYPE, universal tags become ambiguous. This allows one to create
a negative zero, which should be impossible. Impose an upper bound on universal
tags accepted by crypto/asn1 and add a test.

BUG=590615

Change-Id: I363e01ebfde621c8865101f5bcbd5f323fb59e79
Reviewed-on: https://boringssl-review.googlesource.com/7238
Reviewed-by: Adam Langley <agl@google.com>
2016-02-29 21:17:19 +00:00
..
CMakeLists.txt Remove BIO dependency from cmac_test. 2015-08-07 01:53:01 +00:00
file_test.cc Test different chunk sizes in cipher_test. 2016-02-24 18:12:57 +00:00
file_test.h Remove support for blocks in file_test.h. 2016-02-17 17:24:57 +00:00
malloc.cc Raise SIGTRAP rather than abort on failure. 2015-06-16 18:25:30 +00:00
scoped_types.h ASN1_get_object should not accept large universal tags. 2016-02-29 21:17:19 +00:00
test_util.cc Remove BIO dependency from cmac_test. 2015-08-07 01:53:01 +00:00
test_util.h Remove BIO dependency from cmac_test. 2015-08-07 01:53:01 +00:00