Skip to content

Don't access variable used as move construction src#42574

Merged
kyessenov merged 1 commit intoenvoyproxy:mainfrom
akonradi:patch-7
Dec 11, 2025
Merged

Don't access variable used as move construction src#42574
kyessenov merged 1 commit intoenvoyproxy:mainfrom
akonradi:patch-7

Conversation

@akonradi
Copy link
Copy Markdown
Contributor

Commit Message: Don't access variable used as move construction src
Additional Description:
Avoid a potential use-after-free or logic error caused by access of a variable that was already used as the argument to a move constructor.
Risk Level: low
Testing: ran existing unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Avoid a potential use-after-free or logic error caused by access of a variable that was already used as the argument to a move constructor.

Signed-off-by: Alex Bakon <abakon@netflix.com>
@akonradi
Copy link
Copy Markdown
Contributor Author

This was found by inspection but in theory could have been detected by an existing clang-tidy check.

Copy link
Copy Markdown
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@kyessenov kyessenov merged commit c47dccc into envoyproxy:main Dec 11, 2025
25 checks passed
@phlax
Copy link
Copy Markdown
Member

phlax commented Dec 12, 2025

cc @jwendell who is looking at bringing back clang-tidy

MayorFaj pushed a commit to MayorFaj/envoy that referenced this pull request Dec 15, 2025
…proxy#42574)

Commit Message: Don't access variable used as move construction src
Additional Description:
Avoid a potential use-after-free or logic error caused by access of a
variable that was already used as the argument to a move constructor.
Risk Level: low
Testing: ran existing unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Alex Bakon <abakon@netflix.com>
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Mar 20, 2026
…proxy#42574)

Commit Message: Don't access variable used as move construction src
Additional Description:
Avoid a potential use-after-free or logic error caused by access of a
variable that was already used as the argument to a move constructor.
Risk Level: low
Testing: ran existing unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Alex Bakon <abakon@netflix.com>
Signed-off-by: Gustavo <grnmeira@gmail.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