Skip to content

Fix environ_get: append null. #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Conversation

mathetake
Copy link
Contributor

Signed-off-by: Takeshi Yoneda [email protected]

found this bug while writing tests in Envoy: it looks like append("\x0") or append("\0") does nothing, and that would result in non-terminated values in the first env vars

KEY1: VALUE1KEY2=VALUE2
KEY2: VALUE2

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake mathetake requested a review from PiotrSikora as a code owner March 3, 2021 02:10
@mathetake
Copy link
Contributor Author

I guess maybe "\x0" literal is just translated to empty string

@mathetake mathetake merged commit dd33aa6 into proxy-wasm:master Mar 3, 2021
@mathetake mathetake deleted the fix-envvar branch March 3, 2021 05:44
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