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 LMDB related segfault for #2755 #2761

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

dvershinin
Copy link
Contributor

Make transactions no-op if the file handle is invalid (due to permissions, or other reasons like lmdb library mismatch).

Make transactions no-op if the file handle is invalid
@martinhsv
Copy link
Contributor

While it's a good idea to avoid conditions that result in a segfault, alternatives that result in failing silently are pretty disadvantageous too.

I'll have a closer look. What we might wind up doing is merging something close to what you have here, and then I can add some additional content on top of it.

@martinhsv
Copy link
Contributor

I'll go ahead and merge this. Some further improvements, including to make the failure non-silent, can be made later.

Thanks for the contribution @dvershinin

@martinhsv martinhsv merged commit f923838 into owasp-modsecurity:v3/master Aug 29, 2022
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