From: Maxim Mamontov Date: Wed, 31 Aug 2011 10:00:32 +0000 (+0300) Subject: Fix accessing array element above array bounds in rsconf X-Git-Tag: 2.408-alpha~20 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/6c3114a1ec31d54d935f4d8395ef4816ae250295 Fix accessing array element above array bounds in rsconf --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp index 9ec72a1c..b4cbf544 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp @@ -461,7 +461,7 @@ while (1) } char buffer[8]; - buffer[8] = 0; + buffer[7] = 0; DecodeString(buffer, bufferS, &ctx); requestList.push_back(std::string(buffer, pos));