Skip to content

Commit 55a0135

Browse files
wooffieaduh95
authored andcommitted
src: add default value for RSACipherConfig mode field
Using default init of enum is UB Refs: #56693 PR-URL: #56701 Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f4a9b13 commit 55a0135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_rsa.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct RSAKeyExportTraits final {
7777
using RSAKeyExportJob = KeyExportJob<RSAKeyExportTraits>;
7878

7979
struct RSACipherConfig final : public MemoryRetainer {
80-
CryptoJobMode mode;
80+
CryptoJobMode mode = kCryptoJobAsync;
8181
ByteSource label;
8282
int padding = 0;
8383
const EVP_MD* digest = nullptr;

0 commit comments

Comments
 (0)