Skip to content

Comments

Bugfix stack overflow#57

Merged
zafer-esen merged 8 commits intomasterfrom
bugfix-stack-overflow
Dec 15, 2025
Merged

Bugfix stack overflow#57
zafer-esen merged 8 commits intomasterfrom
bugfix-stack-overflow

Conversation

@woosh
Copy link
Collaborator

@woosh woosh commented Dec 12, 2025

This PR closes #58. It introduces a new AST visitor, CCAstFillFuncDef, that scans for function definitions before the rewrite of the AST to deal with stack pointers.

It also fixes a problem with stack overflow exceptions under particular conditions. (Unfortunately I was not able to isolate a simple example when that happens. This is what he changes to the getStructMap functions in CCReader file is about.)

@woosh woosh marked this pull request as ready for review December 12, 2025 09:47
Copy link
Collaborator

@zafer-esen zafer-esen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the issue and the bugfix, looks good to me!

@zafer-esen
Copy link
Collaborator

I assume this is ready to merge?

@zafer-esen zafer-esen merged commit 9ed32e3 into master Dec 15, 2025
1 check passed
@zafer-esen zafer-esen deleted the bugfix-stack-overflow branch December 15, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False "Unsupported C fragment ..." error.

2 participants