mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
charmap: Store hashmap nodes in charmap stack
This helps update all the pointers during reallocation.
This commit is contained in:
committed by
Eldred Habert
parent
8885f7bcf6
commit
215e26b478
6
test/asm/pushc-without-switch.asm
Normal file
6
test/asm/pushc-without-switch.asm
Normal file
@@ -0,0 +1,6 @@
|
||||
; Triggering a charmap realloc while the charmap has been pushed onto the stack used
|
||||
; to induce a use-after-free.
|
||||
pushc
|
||||
charmap "000000000000000000000000000000000",12
|
||||
popc
|
||||
charmap "000000000000000000000000000000000",34
|
||||
0
test/asm/pushc-without-switch.err
Normal file
0
test/asm/pushc-without-switch.err
Normal file
0
test/asm/pushc-without-switch.out
Normal file
0
test/asm/pushc-without-switch.out
Normal file
Reference in New Issue
Block a user