Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Aug 12, 2025

No description provided.

jserv added 3 commits August 13, 2025 04:29
hashmap_node_new() allocates both the node and key via
arena_alloc(HASHMAP_ARENA). Calling free(node) when key allocation fails
is incorrect because the arena owns lifetime. Remove the invalid free to
avoid mixing allocators.
This commit prevents token_str overflow by checking bounds when building
preprocessor directives, identifiers, and numeric literals.
This prevents overflow during lexing and extends robust string-escape
cases.
@jserv jserv merged commit fb956c1 into master Aug 12, 2025
12 checks passed
@jserv jserv deleted the fixes branch August 12, 2025 22:16
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.

2 participants