Fix use-after-free when keeping pointers to args from at-files (#1426)

This commit is contained in:
Eldred Habert
2024-07-25 23:00:48 +02:00
committed by GitHub
parent c0904228f2
commit 1d89d75381
4 changed files with 25 additions and 3 deletions

14
test/gfx/at-file-ref.err Normal file
View File

@@ -0,0 +1,14 @@
error: Failed to fit tile colors [$7f55, $7fff] in specified palettes
error: Failed to fit tile colors [$7f55] in specified palettes
error: Failed to fit tile colors [$6c8a, $7f55, $7fff] in specified palettes
error: Failed to fit tile colors [$6c8a, $7fff] in specified palettes
error: Failed to fit tile colors [$6c8a, $7f55] in specified palettes
error: Failed to fit tile colors [$6c8a] in specified palettes
error: Failed to fit tile colors [$7fff] in specified palettes
note: The following palettes were specified:
[$3f65, $36b3, $262a, $50b0]
[$5f77, $213d, $41a6, $40ee]
[$5f77, $267c, $213d, $40ee]
[$53c3, $3f65, $36b3]
[$267c, $41a6]
Conversion aborted after 7 errors

View File

@@ -0,0 +1,2 @@
-m
-c gbc:result.pal

BIN
test/gfx/at-file-ref.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B