Skip to content

Commit e7b44c3

Browse files
HybridDognerzhul
authored andcommittedJan 4, 2018
Fix Wstringop-overflow warning from util/srp.cpp (#6855)
* Fix Wstringop-overflow warning from util/srp.cpp
1 parent 30821ad commit e7b44c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎src/util/srp.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <cstdlib>
4040
#include <cstring>
4141
#include <cstdio>
42+
#include <cstdint>
4243

4344
#include <config.h>
4445

@@ -418,7 +419,7 @@ static SRP_Result H_nn(
418419
}
419420

420421
static SRP_Result H_ns(mpz_t result, SRP_HashAlgorithm alg, const unsigned char *n,
421-
size_t len_n, const unsigned char *bytes, size_t len_bytes)
422+
size_t len_n, const unsigned char *bytes, uint32_t len_bytes)
422423
{
423424
unsigned char buff[SHA512_DIGEST_LENGTH];
424425
size_t nbytes = len_n + len_bytes;

0 commit comments

Comments
 (0)
Please sign in to comment.