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 <soyjuanarbol@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
wooffie authored and aduh95 committed Feb 6, 2025
1 parent 927c7e4 commit 89a7c82
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 89a7c82

Please sign in to comment.