overflow fix

This commit is contained in:
Nikolay Korolev 2020-11-01 13:55:29 +03:00
parent db84afd263
commit 63a27fbc5f
5 changed files with 6 additions and 6 deletions

View File

@ -2488,7 +2488,7 @@ int8 CRunningScript::ProcessOneCommand()
if (commands[command].position == -1) if (commands[command].position == -1)
strcat(commandInfo, commands[command].name + sizeof("COMMAND_") - 1); strcat(commandInfo, commands[command].name + sizeof("COMMAND_") - 1);
for (int i = 0; commands[command].input[i] != ARGTYPE_NONE; i++) { for (int i = 0; commands[command].input[i] != ARGTYPE_NONE; i++) {
char tmp[16]; char tmp[32];
bool var = false; bool var = false;
int value; int value;
switch (commands[command].input[i]) { switch (commands[command].input[i]) {
@ -2552,7 +2552,7 @@ int8 CRunningScript::ProcessOneCommand()
m_nIp = ip; m_nIp = ip;
ip = t; ip = t;
for (int i = 0; commands[command].output[i] != ARGTYPE_NONE; i++) { for (int i = 0; commands[command].output[i] != ARGTYPE_NONE; i++) {
char tmp[16]; char tmp[32];
switch (commands[command].output[i]) { switch (commands[command].output[i]) {
case ARGTYPE_INT: case ARGTYPE_INT:
case ARGTYPE_PED_HANDLE: case ARGTYPE_PED_HANDLE:

2
vendor/librw vendored

@ -1 +1 @@
Subproject commit 4e8396af2656a0aec5d5092a3128d9df3dcaf4c6 Subproject commit e68ef1374d20071887348e9031f5fa38a2e4f7ed

2
vendor/ogg vendored

@ -1 +1 @@
Subproject commit 684c73773e7e2683245ffd6aa75f04115b51123a Subproject commit 36f969bb37559345ee03796ed625a9abd42c6db9

2
vendor/opus vendored

@ -1 +1 @@
Subproject commit 6bae366f9fef25191fc812c430e8abd40a13a233 Subproject commit 034c1b61a250457649d788bbf983b3f0fb63f02e

2
vendor/opusfile vendored

@ -1 +1 @@
Subproject commit 6452e838e68e8f4fc0b3599523c760ac6276ce89 Subproject commit 4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6