Skip to content

Commit

Permalink
Fixed buffer overflow
Browse files Browse the repository at this point in the history
When USE_VENDER_BLAKE2B is defined
  • Loading branch information
Sc00bz authored Mar 8, 2024
1 parent b76c339 commit 5cbc1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blake2b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void blake2b_nativeIn(void *out, size_t outSize, const uint64_t *in, size_t inSi
*/
void blake2b_nativeInOut(uint64_t out[8], const uint64_t *in, size_t inSize)
{
uint8_t hash[8];
uint8_t hash[64];

// Hash
blake2b_nativeIn(hash, 64, in, inSize);
Expand Down

0 comments on commit 5cbc1ba

Please sign in to comment.