From 63a27fbc5f41709b277cd46a7e8edf49c6d16460 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 1 Nov 2020 13:55:29 +0300 Subject: [PATCH] overflow fix --- src/control/Script.cpp | 4 ++-- vendor/librw | 2 +- vendor/ogg | 2 +- vendor/opus | 2 +- vendor/opusfile | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 86c9e86e..45e17491 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -2488,7 +2488,7 @@ int8 CRunningScript::ProcessOneCommand() if (commands[command].position == -1) strcat(commandInfo, commands[command].name + sizeof("COMMAND_") - 1); for (int i = 0; commands[command].input[i] != ARGTYPE_NONE; i++) { - char tmp[16]; + char tmp[32]; bool var = false; int value; switch (commands[command].input[i]) { @@ -2552,7 +2552,7 @@ int8 CRunningScript::ProcessOneCommand() m_nIp = ip; ip = t; for (int i = 0; commands[command].output[i] != ARGTYPE_NONE; i++) { - char tmp[16]; + char tmp[32]; switch (commands[command].output[i]) { case ARGTYPE_INT: case ARGTYPE_PED_HANDLE: diff --git a/vendor/librw b/vendor/librw index 4e8396af..e68ef137 160000 --- a/vendor/librw +++ b/vendor/librw @@ -1 +1 @@ -Subproject commit 4e8396af2656a0aec5d5092a3128d9df3dcaf4c6 +Subproject commit e68ef1374d20071887348e9031f5fa38a2e4f7ed diff --git a/vendor/ogg b/vendor/ogg index 684c7377..36f969bb 160000 --- a/vendor/ogg +++ b/vendor/ogg @@ -1 +1 @@ -Subproject commit 684c73773e7e2683245ffd6aa75f04115b51123a +Subproject commit 36f969bb37559345ee03796ed625a9abd42c6db9 diff --git a/vendor/opus b/vendor/opus index 6bae366f..034c1b61 160000 --- a/vendor/opus +++ b/vendor/opus @@ -1 +1 @@ -Subproject commit 6bae366f9fef25191fc812c430e8abd40a13a233 +Subproject commit 034c1b61a250457649d788bbf983b3f0fb63f02e diff --git a/vendor/opusfile b/vendor/opusfile index 6452e838..4174c26e 160000 --- a/vendor/opusfile +++ b/vendor/opusfile @@ -1 +1 @@ -Subproject commit 6452e838e68e8f4fc0b3599523c760ac6276ce89 +Subproject commit 4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6