aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/ber_dec.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-09-27 12:13:15 +0000
committerlloyd <[email protected]>2014-09-27 12:13:15 +0000
commit894f8810ea4326a3619a6f60761f702f35abb817 (patch)
treea14cd02d1535ff548b6ad005d8bf586429c85bd6 /src/lib/asn1/ber_dec.cpp
parent69122ae59b199a2a202a9f0f07be81bf001f376b (diff)
Fix decoding indefinite length BER constructs that contain a context
sensitive tag of zero. Github pull 26 from Janusz Chorko.
Diffstat (limited to 'src/lib/asn1/ber_dec.cpp')
-rw-r--r--src/lib/asn1/ber_dec.cpp2
1 files changed, 1 insertions, 1 deletions
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;