fix: DLL hijacking vulnerability in c2patool (CAI-8608)#2031
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2031 +/- ##
==========================================
+ Coverage 77.70% 78.60% +0.90%
==========================================
Files 176 176
Lines 44645 46361 +1716
==========================================
+ Hits 34691 36443 +1752
+ Misses 9954 9918 -36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| #[cfg(windows)] | ||
| // SAFETY: no invariants to uphold; the argument is a valid constant. | ||
| unsafe { | ||
| windows_sys::Win32::System::LibraryLoader::SetDefaultDllDirectories( |
There was a problem hiding this comment.
SetDefaultDllDirectories has a return value, a bool indicating success. Shouldn't the result of this call be checked then?
Should not fail, but while hardening...
…ediately with an error rather than silently continuing with an insecure DLL search path
…irectories` failure
…ing-vuln' into CAI-8608/dll-hijacking-vuln
No description provided.