Fix incorrect parameter value in call to BigInt() when initializing BnetSRP3::I, which caused a buffer overflow

This commit is contained in:
RElesgoe 2020-10-07 15:04:01 -07:00 committed by GitHub
parent 92211ef22d
commit 6f5b27a8b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ namespace pvpgn
BigInt BnetSRP3::N = BigInt(bnetsrp3_N, 32);
BigInt BnetSRP3::g = BigInt(bnetsrp3_g);
BigInt BnetSRP3::I = BigInt(bnetsrp3_I, 32);
BigInt BnetSRP3::I = BigInt(bnetsrp3_I, 20);
int
BnetSRP3::init(const char* username_, const char* password_, BigInt* salt_)