From 6f5b27a8b047950cb7f533e9b871ac7e18017f90 Mon Sep 17 00:00:00 2001 From: RElesgoe <RElesgoe@users.noreply.github.com> Date: Wed, 7 Oct 2020 15:04:01 -0700 Subject: [PATCH] Fix incorrect parameter value in call to BigInt() when initializing BnetSRP3::I, which caused a buffer overflow --- src/common/bnetsrp3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/bnetsrp3.cpp b/src/common/bnetsrp3.cpp index c539c3f..b9eb4a3 100644 --- a/src/common/bnetsrp3.cpp +++ b/src/common/bnetsrp3.cpp @@ -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_)