Overview
| Artifact ID: | 3c8b76f444e405257de33810039a6710239ef44b0e19776bd578abc6a7b75187 |
|---|---|
| Ticket: | a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder |
| User & Date: | jan.nijtmans on 2024-11-23 12:00:26 |
Changes
- icomment:
Ashok, I fully understand your reservations. However: > depends on undocumented Windows Yes, some macOS code does as well. In this case, it depends on the Windows PE format, which didn't change in a long time and is not likely to change in the future. The fancycode implementation is already more than 10 years old, and it still works with Windows 11. That tells something. >has some serious unresolved tickets and shortcomings in common situations where the DLL being loaded uses SEH, thread local storage, has manifests etc. SEH won't work with the Tcl C-API anyway. We can require Tcl's own thread local storage to be used. The presence of manifests in the dll can only fail if the dll is actually trying to read the manifest content. > I don't think any of these are likely to be addressed as the software seems to be abandonware. If a bug is discovered, we don't need to address it. The simple answer is: not supported. There are bug-fixes available in git clones. If people submit a bug-report about it, that's fine. If a crash happens inside MemoryModule, it means some situation is not handled. The bug can be worked around then by letting OpenMemoryModule() return NULL, then the fallback of copying the dll to the temp directory will take place. Considering all of this, MemoryModule appears to work well (at least with dde and registry). If there are problems, there is always the fallback of statically linking too. I don't see much risk for us.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"