diff options
author | Jack Lloyd <[email protected]> | 2018-06-29 12:55:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-06-29 12:55:43 -0400 |
commit | cd7d4783f89f7e410bc7e12a61b5d2d76277ba92 (patch) | |
tree | 672243de7f62ed7ef61beccb97a7ee45724e6c8d /src/lib | |
parent | 8733cec5646a4e1b7a921aa92ec4d391506acedf (diff) |
Fix Coverity false positive
It thinks a divide by zero can happen here
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/pubkey.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pubkey/pubkey.cpp b/src/lib/pubkey/pubkey.cpp index 048fd3130..99d892766 100644 --- a/src/lib/pubkey/pubkey.cpp +++ b/src/lib/pubkey/pubkey.cpp @@ -315,6 +315,8 @@ bool PK_Verifier::check_signature(const uint8_t sig[], size_t length) BER_Decoder decoder(sig, length); BER_Decoder ber_sig = decoder.start_cons(SEQUENCE); + BOTAN_ASSERT_NOMSG(m_parts != 0 && m_part_size != 0); + size_t count = 0; while(ber_sig.more_items()) |