mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix Wstringop-overflow warning from util/srp.cpp (#6855)
* Fix Wstringop-overflow warning from util/srp.cpp
This commit is contained in:
parent
30821ad8de
commit
e7b44c3295
@ -39,6 +39,7 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -418,7 +419,7 @@ static SRP_Result H_nn(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static SRP_Result H_ns(mpz_t result, SRP_HashAlgorithm alg, const unsigned char *n,
|
static SRP_Result H_ns(mpz_t result, SRP_HashAlgorithm alg, const unsigned char *n,
|
||||||
size_t len_n, const unsigned char *bytes, size_t len_bytes)
|
size_t len_n, const unsigned char *bytes, uint32_t len_bytes)
|
||||||
{
|
{
|
||||||
unsigned char buff[SHA512_DIGEST_LENGTH];
|
unsigned char buff[SHA512_DIGEST_LENGTH];
|
||||||
size_t nbytes = len_n + len_bytes;
|
size_t nbytes = len_n + len_bytes;
|
||||||
|
Loading…
Reference in New Issue
Block a user