mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Extensions - Fix buffer overflows and Artillery Tables for GCC (#7641)
* Dynload - Fix buffer overflow * Fix more buffer overflows * Fix Artillery Tables compilation for GCC
This commit is contained in:
@ -40,9 +40,9 @@ std::string getImagePathFromStructuredText(const std::string & input) {
|
||||
void __stdcall RVExtension(char *output, int outputSize, const char *function) {
|
||||
ZERO_OUTPUT();
|
||||
if (!strcmp(function, "version")) {
|
||||
strncpy(output, ACE_FULL_VERSION_STR, outputSize);
|
||||
strncpy(output, ACE_FULL_VERSION_STR, outputSize - 1);
|
||||
} else {
|
||||
strncpy(output, getImagePathFromStructuredText(function).c_str(), outputSize);
|
||||
strncpy(output, getImagePathFromStructuredText(function).c_str(), outputSize - 1);
|
||||
}
|
||||
EXTENSION_RETURN();
|
||||
}
|
||||
|
Reference in New Issue
Block a user