https://bugs.winehq.org/show_bug.cgi?id=54300
Bug ID: 54300 Summary: LdrLoadDll illegal memory access on DllPath Product: Wine Version: 7.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: novae.harpist06@icloud.com Distribution: ---
Created attachment 73867 --> https://bugs.winehq.org/attachment.cgi?id=73867 Reproducer
See reproducer (attached)
DllPath can be search flags, which is indicated by passing a pointer where the lowest bit is set. This is not handled in wine, which calls wcslen on it: https://github.com/wine-mirror/wine/blob/a8c1d5c108fc57e4d78e9db126f395c8908...
The path resolution is correctly implemented in LdrGetDllPath, but that function is not used (besides being an export).
Windows output: Trying flag 00000200 Trying flag 00000400 Trying flag 00000800 Trying flag 00001000 Trying flag 00002000 Trying flag 00004000
Wine output: Trying flag 00000200 wine: Unhandled page fault on read access to 0000000000000201 at address 0000000170069B40 (thread 05ec), starting debugger...
https://bugs.winehq.org/show_bug.cgi?id=54300
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase