summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-11-18 15:32:28 -0500
committerJeffrey Walton <noloader@gmail.com>2015-11-18 15:32:28 -0500
commit6ac1e46a1fb01f01705b67dd553d5ba317b1dc3e (patch)
treef0d873d0b377a91dce5ee384e60426ef57efc92b /asn.h
parentd2fda9bd4231a7dfcb44e59150f11246d992843f (diff)
downloadcryptopp-git-6ac1e46a1fb01f01705b67dd553d5ba317b1dc3e.tar.gz
Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup)
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/asn.h b/asn.h
index 89448b19..ba4a3191 100644
--- a/asn.h
+++ b/asn.h
@@ -1,6 +1,7 @@
// asn.h - written and placed in the public domain by Wei Dai
//! \file
+//! \headerfile asn.h
//! \brief Classes and functions for working with ANS.1 objects
#ifndef CRYPTOPP_ASN_H
@@ -348,7 +349,9 @@ void BERDecodeUnsigned(BufferedTransformation &in, T &w, byte asnTag = INTEGER,
BERDecodeError();
size_t bc;
- BERLengthDecode(in, bc);
+ bool definite = BERLengthDecode(in, bc);
+ if (!definite)
+ BERDecodeError();
SecByteBlock buf(bc);