mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +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