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

Classic/DllSecur: Specify LOAD_LIBRARY_SEARCH_APPLICATION_DIR. #379

Closed
wants to merge 1 commit into from

Conversation

dinhngtu
Copy link
Contributor

@dinhngtu dinhngtu commented Feb 8, 2024

NanaZip's codec split causes NanaZipC to fail loading codecs from its application directory.

Specify LOAD_LIBRARY_SEARCH_APPLICATION_DIR to SetDefaultDllDirectories to fix this issue.

@MouriNaruto
Copy link
Member

I will debug NanaZipC and try to find a better workaround for that because I'm worried about the security issues of DLL hijacking.

Kenji Mouri

MouriNaruto added a commit that referenced this pull request Feb 9, 2024
@MouriNaruto
Copy link
Member

MouriNaruto commented Feb 9, 2024

image
62278f2

In the current development stage, I use a hacky way to workaround this issue and make me not worry about the security issues.

This hacky workaround I committed will be removed when I finish the split work.

The screenshot notes the workaround works because SM3 hashing support implemented in NanaZip.Codecs.dll.

Kenji Mouri

@dinhngtu dinhngtu closed this Apr 21, 2024
@dinhngtu dinhngtu deleted the codecfix branch April 21, 2024 16:41
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