diff options
-rw-r--r-- | doc/relnotes/1_11_10.rst | 3 | ||||
-rw-r--r-- | src/lib/asn1/ber_dec.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/relnotes/1_11_10.rst b/doc/relnotes/1_11_10.rst index 3e5c6d55d..5ea11ff9d 100644 --- a/doc/relnotes/1_11_10.rst +++ b/doc/relnotes/1_11_10.rst @@ -9,3 +9,6 @@ Version 1.11.10, Not Yet Released * The Miller-Rabin primality test function now takes a parameter allowing the user to directly specify the maximum false negative probability they are willing to accept. + +* Fix decoding indefinite length BER constructs that contain a context + sensitive tag of zero. Github pull 26 from Janusz Chorko. diff --git a/src/lib/asn1/ber_dec.cpp b/src/lib/asn1/ber_dec.cpp index 81b2e34f6..c74377389 100644 --- a/src/lib/asn1/ber_dec.cpp +++ b/src/lib/asn1/ber_dec.cpp @@ -127,7 +127,7 @@ size_t find_eoc(DataSource* ber) length += item_size + length_size + tag_size; - if(type_tag == EOC) + if(type_tag == EOC && class_tag == UNIVERSAL) break; } return length; |