mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
keccak: fix sanity check bounds test
Nothing calls this with those inputs
This commit is contained in:
parent
ad11db9144
commit
03887f1140
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ void keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
|
||||||
}
|
}
|
||||||
|
|
||||||
// last block and padding
|
// last block and padding
|
||||||
if (inlen >= sizeof(temp) || inlen > rsiz || rsiz - inlen + inlen + 1 >= sizeof(temp) || rsiz == 0 || rsiz - 1 >= sizeof(temp) || rsizw * 8 > sizeof(temp))
|
if (inlen + 1 >= sizeof(temp) || inlen > rsiz || rsiz - inlen + inlen + 1 >= sizeof(temp) || rsiz == 0 || rsiz - 1 >= sizeof(temp) || rsizw * 8 > sizeof(temp))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Bad keccak use");
|
fprintf(stderr, "Bad keccak use");
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in a new issue