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

Add an init guard to prevent authenticode parser reinitialize #1923

Merged
merged 1 commit into from
May 25, 2023

Conversation

kylereedmsft
Copy link
Contributor

We use libyara in a process that can initialize/finialize and then re-initialize yara.
After #1623 was merged, calling initialize the second time caused failures.

This change adds a static guard around the initialize_authenticode_parser call in pe module's initialize so that it won't be initialized more than once per process.

@google-cla
Copy link

google-cla bot commented May 18, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@kylereedmsft kylereedmsft marked this pull request as ready for review May 18, 2023 22:41
@kylereedmsft kylereedmsft changed the title Add an init guard to prevent auth reinitialize Add an init guard to prevent authenticode parser reinitialize May 18, 2023
@plusvic plusvic merged commit 45e6950 into VirusTotal:master May 25, 2023
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