You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Version
20.18.0
Platform
Subsystem
crypto
What steps will reproduce the bug?
Default ctor of
RSACipherConfig
class cannot initialize fieldCryptoJobMode mode
node/src/crypto/crypto_rsa.h
Line 85 in bf59539
Consider set default value for mode, otherwise it is undefined behavior
P.S. I learn some code uses that, looks its not critical, but will be fine to eliminate this bug
How often does it reproduce? Is there a required condition?
By using default ctor and access field
mode
What is the expected behavior? Why is that the expected behavior?
Field should have default value
What do you see instead?
No default value
Additional information
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reporter: Burkov Egor (eburkov@rvision.ru).
Organization: R-Vision (support@rvision.ru).
The text was updated successfully, but these errors were encountered: