src: assert return value of BN_bn2binpad · nodejs/node@feb8ff9 · GitHub
Skip to content

Commit feb8ff9

Browse files
tniessenRafaelGSS
authored andcommitted
src: assert return value of BN_bn2binpad
Every other invocation of BN_bn2binpad checks the return value. For safety and consistency, do so in RandomPrimeTraits::EncodeOutput() as well. PR-URL: #50860 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 65a811a commit feb8ff9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/crypto/crypto_random.cc

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)