Skip to content

fix: Find invalid characters after nul bytes in KV store keys#1464

Merged
zkat merged 5 commits into
mainfrom
sy/kv-store-nul-byte
May 11, 2026
Merged

fix: Find invalid characters after nul bytes in KV store keys#1464
zkat merged 5 commits into
mainfrom
sy/kv-store-nul-byte

Conversation

@TartanLlama

Copy link
Copy Markdown
Contributor

find_invalid_character_for_kv_store_key takes just a char* rather than ptr + length, so if the string contains NUL bytes, characters after the bytes are not checked. This PR adds a length parameter, a test, and also fixes a similar issue with relative paths later in the KV store code.

@zkat zkat merged commit 5f0f0f2 into main May 11, 2026
29 checks passed
@zkat zkat deleted the sy/kv-store-nul-byte branch May 11, 2026 18:46
pull Bot pushed a commit to eduardomourar/js-compute-runtime that referenced this pull request May 14, 2026
…#1464)

Co-authored-by: Kat Marchán <kzm@zkat.tech>
Co-authored-by: Kat Marchán <kat.marchan@fastly.com>
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.

3 participants