mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +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
|
||||
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");
|
||||
abort();
|
||||
|
|
Loading…
Reference in a new issue