Skip to content
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

prevent multiple calls to LoadELF #201

Merged
merged 3 commits into from
Oct 17, 2024
Merged

prevent multiple calls to LoadELF #201

merged 3 commits into from
Oct 17, 2024

Conversation

val06
Copy link
Contributor

@val06 val06 commented Oct 16, 2024

What does this PR do?

fixes a potential state corruption if LoadElf is called more than once on the same manager

Motivation

If one Elf is already loaded, we shouldn't allow further calls (similar to Init/InitWithOptions logic)

Additional Notes

Anything else we should know when reviewing?

Describe how to test your changes

added a UT

@val06 val06 requested a review from a team as a code owner October 16, 2024 11:35
@val06 val06 merged commit ede90e3 into main Oct 17, 2024
3 checks passed
@val06 val06 deleted the valeri.pliskin/load-elf-bug branch October 17, 2024 13:45
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