Skip to content

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

Open
TartanLlama wants to merge 2 commits intomainfrom
sy/kv-store-nul-byte
Open

fix: Find invalid characters after nul bytes in KV store keys#1464
TartanLlama wants to merge 2 commits intomainfrom
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.

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