Files
u-boot/lib
Heinrich Schuchardt eb48efce26 lib: parameter check in hash_calculate
If hash_calculate is invoked with region_count = 0, it will try to hash
INT_MAX regions. We should check this parameter.

* Avoid a comparison with different signedness.
* Check that region_count is at least 1.
* Avoid a superfluous assignment.

Fixes: b37b46f042 ("rsa: Use checksum algorithms from struct hash_algo")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-08-27 08:21:07 +02:00
..
2023-06-12 14:55:33 -04:00
2022-07-11 14:58:57 -04:00
2023-02-11 12:22:34 -05:00
2022-07-26 02:30:56 -06:00
2023-01-04 13:17:42 +01:00
2022-08-12 08:14:23 -04:00
2023-01-20 12:27:24 -05:00
2023-05-11 10:25:29 +08:00
2023-01-16 18:01:10 +08:00
2022-10-27 09:10:08 -04:00
2023-02-11 12:22:34 -05:00
2023-02-11 12:22:35 -05:00