Skip to content

Commit b240ca6

Browse files
wooffietargos
authored andcommitted
src: add check for Bignum in GroupOrderSize
I think it's missed, cause in this file we have example of checking result of BignumPointer::new Refs: #56692 PR-URL: #56702 Fixes: #56692 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c8bd2ba commit b240ca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypto/crypto_ec.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ size_t GroupOrderSize(const EVPKeyPointer& key) {
918918
const EC_KEY* ec = key;
919919
CHECK_NOT_NULL(ec);
920920
auto order = BignumPointer::New();
921+
CHECK(order);
921922
CHECK(EC_GROUP_get_order(ECKeyPointer::GetGroup(ec), order.get(), nullptr));
922923
return order.byteLength();
923924
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy