Skip to content

Conversation

@gregnr
Copy link
Collaborator

@gregnr gregnr commented Jun 3, 2025

Fixes memory access out of bounds error when passing a large SQL string (>64KB) to the parser.

The issue was that we were passing the SQL string to WASM via the stack, which isn't designed to hold large data (default stack size is 64KB). Fixed by manually allocating the SQL string on the heap, passing the pointer to the parse function, and freeing afterwords.

Also adds test using a large SQL dump.

@gregnr gregnr merged commit ae884fe into main Jun 3, 2025
1 check passed
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