Files
rgbds/test/asm
dbrotz 015d2b0830 Fix buffer overflow when creating patches with long RPN expressions
The createpatch() function was using a fixed-size buffer. I've changed it
to be dynamically allocated. I saw that the RPN format used in patches is
slightly different from the one used internally in the assembler, so I
added a new member to the Expression struct to track the patch size.

I've also limited the RPN expression length to 1MB. I realized that the
patch RPN expression could potentially be longer than the internal RPN
expression, so the internal expression would need a limit smaller than
UINT32_MAX. I thought 1MB would be a reasonable limit.
2019-07-04 16:49:09 -07:00
..
2019-05-05 15:50:56 -07:00
2019-05-05 15:50:56 -07:00
2015-01-27 04:33:38 -07:00
2018-04-03 23:04:29 +01:00
2018-04-03 23:04:29 +01:00
2019-07-03 16:05:54 +02:00
2019-05-05 15:50:56 -07:00
2018-06-30 21:57:34 -04:00
2018-06-30 21:57:34 -04:00