mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Fixed base64_decode() reject empty input buffers
This commit is contained in:
parent
380da72b80
commit
72822e7be4
@ -115,7 +115,7 @@ unsigned char * base64_decode(const unsigned char *src, size_t len,
|
||||
count++;
|
||||
}
|
||||
|
||||
if (count % 4)
|
||||
if (count == 0 || count % 4)
|
||||
return NULL;
|
||||
|
||||
olen = count / 4 * 3;
|
||||
|
Loading…
Reference in New Issue
Block a user