mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Fix heap use after free in compiler.c
This commit is contained in:
@@ -754,7 +754,7 @@ unsigned char* collateCompiler(Compiler* compiler, int* size) {
|
|||||||
emitByte(&collation, &capacity, &count, OP_EOF); //terminate bytecode
|
emitByte(&collation, &capacity, &count, OP_EOF); //terminate bytecode
|
||||||
|
|
||||||
//finalize
|
//finalize
|
||||||
SHRINK_ARRAY(unsigned char, collation, capacity, count);
|
collation = SHRINK_ARRAY(unsigned char, collation, capacity, count);
|
||||||
|
|
||||||
*size = count;
|
*size = count;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user