Skip to content

Commit

Permalink
src: add default value for RSACipherConfig mode field
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Burkov Egor authored and jasnell committed Jan 25, 2025
1 parent da1ca7d commit db5a2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_rsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct RSAKeyExportTraits final {
using RSAKeyExportJob = KeyExportJob<RSAKeyExportTraits>;

struct RSACipherConfig final : public MemoryRetainer {
CryptoJobMode mode;
CryptoJobMode mode = kCryptoJobAsync;
ByteSource label;
int padding = 0;
const EVP_MD* digest = nullptr;
Expand Down

0 comments on commit db5a2b5

Please sign in to comment.