Merge pull request #358 from dbrotz/fix-357

Fix buffer overflow when creating patches with long RPN expressions
This commit is contained in:
Antonio Niño Díaz authored and GitHub committed 2019-07-12 00:49:08 +01:00
commit b019b03946
7 files changed
+97 -11

No files matched your search

+3
View File
@@ -11,11 +11,14 @@
#include <stdint.h>
#define MAXRPNLEN 1048576
struct Expression {
int32_t nVal;
uint8_t *tRPN;
uint32_t nRPNCapacity;
uint32_t nRPNLength;
uint32_t nRPNPatchSize;
uint32_t nRPNOut;
uint32_t isReloc;
};