mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge pull request #358 from dbrotz/fix-357
Fix buffer overflow when creating patches with long RPN expressions
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user