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: b37b46f042cc ("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-09-18 10:26:33 +02:00
2022-10-11 15:40:48 -04:00
2023-06-20 16:08:13 -04:00
2022-10-31 11:01:31 -04:00
2023-07-28 11:36:37 +02:00
2023-08-15 18:21:17 +02:00
2023-08-03 09:21:02 +02:00
2023-07-25 12:44:46 -04:00
2023-03-22 15:22:48 -04:00
2023-07-14 15:21:08 -04:00
2023-01-11 11:54:50 -05:00
2023-07-14 15:21:08 -04:00
2023-01-18 19:04:17 -05:00
2023-02-11 12:22:34 -05:00
2023-01-04 13:17:42 +01:00
2022-09-18 10:26:33 +02:00
2022-09-23 15:13:18 -04:00
2023-04-30 21:29:50 -04:00
2022-09-18 10:26:33 +02:00
2023-01-20 12:27:24 -05:00
2023-08-27 08:21:07 +02:00
2023-02-09 16:32:26 -05:00
2023-07-25 12:44:46 -04:00
2023-08-07 13:41:44 -04:00
2023-04-06 15:08:46 -04:00
2023-05-11 10:25:29 +08:00
2022-09-18 10:26:33 +02:00
2022-12-05 12:47:16 -05:00
2023-07-14 12:54:51 -04:00
2023-03-22 12:51:08 -04:00
2023-01-16 18:01:10 +08:00
2022-12-08 15:15:22 +08:00
2022-09-18 10:26:33 +02:00
2022-09-18 10:26:33 +02:00
2022-09-18 10:26:33 +02:00
2022-10-27 09:10:08 -04:00
2023-01-23 18:11:39 -05:00
2023-02-11 12:22:34 -05:00
2023-02-28 09:44:33 +02:00
2023-02-28 09:44:33 +02:00
2023-02-28 09:44:33 +02:00
2023-02-11 12:22:35 -05:00
2023-08-08 10:22:03 -04:00
2023-08-09 23:31:11 +08:00