On Wed, 31 Aug 2022 at 13:13, Heinrich Schuchardt
<heinrich.schucha...@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.schucha...@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 <s...@chromium.org>

Reply via email to