
31 Aug
2022
31 Aug
'22
9:23 p.m.
On Wed, 31 Aug 2022 at 13:13, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
Check the that the hash length is shorter than the message length. This avoids:
./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] 275 | db[0] &= 0xff >> leftmost_bits;
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
v2: Use -EINVAL to indicate incorrect parameters. Add description of return value.
lib/rsa/rsa-verify.c | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org