diff options
author | Jack Lloyd <[email protected]> | 2018-06-08 12:11:55 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-06-08 12:11:55 -0400 |
commit | 34f3e5537f6e9820314bd8fbd1b20d4adf7e9a0b (patch) | |
tree | 4d1fbc4e5c77e6e1affc668833f17cee1f9f40d1 /src | |
parent | 424fa6a96be98386fc74a1327929c443d5b22e11 (diff) |
Add missing statement
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/asn1/ber_dec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/asn1/ber_dec.cpp b/src/lib/asn1/ber_dec.cpp index 313e7fd15..c5af2f933 100644 --- a/src/lib/asn1/ber_dec.cpp +++ b/src/lib/asn1/ber_dec.cpp @@ -417,6 +417,7 @@ BER_Decoder& BER_Decoder::decode(size_t& out, decode(integer, type_tag, class_tag); if(integer.is_negative()) + throw BER_Decoding_Error("Decoded small integer value was negative"); if(integer.bits() > 32) throw BER_Decoding_Error("Decoded integer value larger than expected"); |