Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GrosChien
Copy link

Summary

With ca65, using -x / --expand-macros without -l / --listing will cause a segmentation fault when expending a macro:

;test.s
.macro test_mac

.endmacro

test_mac

Running

$ ca65 -x test.s

will result in a segmentation fault.
This is also the case with .define.

This fix will make -x have no effect if -l is omitted.

Checklist

  • The fix meets the codestyle requirements
  • New unit tests have been added to prevent future regressions
  • The documentation has been updated if necessary

@mrdudz
Copy link
Contributor

mrdudz commented Sep 22, 2025

Thanks!

@mrdudz mrdudz merged commit 93c1b65 into cc65:master Sep 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants