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
2019-07-12 00:49:08 +01:00
committed by GitHub
7 changed files with 97 additions and 11 deletions

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;
};