Skip to content

fix: imhex uses all memory#240

Merged
paxcut merged 1 commit into
masterfrom
fix/parser_infinite_loop
May 30, 2026
Merged

fix: imhex uses all memory#240
paxcut merged 1 commit into
masterfrom
fix/parser_infinite_loop

Conversation

@paxcut
Copy link
Copy Markdown
Collaborator

@paxcut paxcut commented May 30, 2026

It appears that my attempt to patch all possible places that could create an infinite loop failed to notice cases like namespace parsing and possibly others. Being unable to guarantee that the error alone will stop the loops I am forced to also make sure that every result of the loop advances the cursor at least one token. I can't really say if this is going to finally fix this problem but just as before, all tests I ran showed that it is indeed the case.

It appears that my attempt to patch all possible places that could create an infinite loop failed to notice cases like namespace parsing and possibly others. Being unable to guarantee that the error alone will stop the loops I am forced to also make sure that every result of the loop advances the cursor at least one token. I can't really say if this is going to finally fix this problem but just as before, all tests I ran showed that it is indeed the case.
@paxcut paxcut merged commit cd1b2ee into master May 30, 2026
5 checks passed
@paxcut paxcut deleted the fix/parser_infinite_loop branch May 30, 2026 21:18
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.

1 participant