fb2c6f8c85
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>
56 lines
667 B
CMake
56 lines
667 B
CMake
include_directories(../../include)
|
|
|
|
add_library(
|
|
asn1
|
|
|
|
OBJECT
|
|
|
|
a_bitstr.c
|
|
a_bool.c
|
|
a_bytes.c
|
|
a_d2i_fp.c
|
|
a_dup.c
|
|
a_enum.c
|
|
a_gentm.c
|
|
a_i2d_fp.c
|
|
a_int.c
|
|
a_mbstr.c
|
|
a_object.c
|
|
a_octet.c
|
|
a_print.c
|
|
a_strnid.c
|
|
a_time.c
|
|
a_type.c
|
|
a_utctm.c
|
|
a_utf8.c
|
|
asn1_lib.c
|
|
asn1_par.c
|
|
asn_pack.c
|
|
bio_asn1.c
|
|
bio_ndef.c
|
|
f_enum.c
|
|
f_int.c
|
|
f_string.c
|
|
t_bitst.c
|
|
tasn_dec.c
|
|
tasn_enc.c
|
|
tasn_fre.c
|
|
tasn_new.c
|
|
tasn_prn.c
|
|
tasn_typ.c
|
|
tasn_utl.c
|
|
x_bignum.c
|
|
x_long.c
|
|
)
|
|
|
|
add_executable(
|
|
asn1_test
|
|
|
|
asn1_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(asn1_test crypto)
|
|
add_dependencies(all_tests asn1_test)
|