Skip to content

Construct empty string from "" not nullptr#15930

Merged
lizan merged 1 commit intoenvoyproxy:mainfrom
justin-mp:nullptr-undefined-behavior
Apr 13, 2021
Merged

Construct empty string from "" not nullptr#15930
lizan merged 1 commit intoenvoyproxy:mainfrom
justin-mp:nullptr-undefined-behavior

Conversation

@justin-mp
Copy link
Copy Markdown
Contributor

When building locally, I got a clang-tidy error saying that
“constructing string from nullptr is undefined behaviour”. Indeed, as
far as I can tell, it is.
https://groups.google.com/a/isocpp.org/g/std-proposals/c/PGdx39Iy8pg

Signed-off-by: Justin Mazzola Paluska justinmp@google.com

Risk Level: Low
Testing: bazel test //test/extensions/filters/http/grpc_json_transcoder/...
Docs Changes: N/A
Release Notes: N/A

When building locally, I got a clang-tidy error saying that
“constructing string from nullptr is undefined behaviour”.  Indeed, as
far as I can tell, it is.
https://groups.google.com/a/isocpp.org/g/std-proposals/c/PGdx39Iy8pg

Signed-off-by: Justin Mazzola Paluska <justinmp@google.com>
@justin-mp justin-mp requested a review from lizan as a code owner April 12, 2021 20:04
@lizan lizan merged commit 7bf90ca into envoyproxy:main Apr 13, 2021
@justin-mp justin-mp deleted the nullptr-undefined-behavior branch April 15, 2021 11:51
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 20, 2021
When building locally, I got a clang-tidy error saying that
“constructing string from nullptr is undefined behaviour”.  Indeed, as
far as I can tell, it is.
https://groups.google.com/a/isocpp.org/g/std-proposals/c/PGdx39Iy8pg

Signed-off-by: Justin Mazzola Paluska <justinmp@google.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