Overview
| Artifact ID: | 9d263012f5e2482ab3ef4c9984dd129089be4695c98e59f11b89298c98a827ea |
|---|---|
| Ticket: | a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder |
| User & Date: | sebres on 2024-11-27 12:32:34 |
Changes
- icomment:
From one side, I'd also prefer a robust implementation. From other side, the unpack to temp-folder is also ugly (no matter once or per process) for several reasons, like troubles with rude AV or policies, or necessity to clean it after exit. Particularly because the sole robust implementation is already here and it is called static linking.<br/> And it has basically only two cons: # some toolchain is necessary to create a ready executable; # impossibility to use nested DLL's (if some tcl-module needs another DLL's as dependencies to work, and want to provide them together within the executable). However the former is solvable using different ways, e. g. offline or online tool to do that (e. g. similar to kit-creator).<br/> And the latter is to neglect, because even current implementation doesn't allow it (I don't think the dependencies will be automatically unpacked to TMP-folder now). I don't see any other reason why <code>{load $dir/some-dll.dll some-module}</code> (with internal load from mem by some hackish way) may be more preferable than simplest <code>{load {} some-module}</code> (with load direct from executable). Excepting probably the factor "compression", but firstly the binaries are usually very bad compressible, and if not - there are special tools like <i>upx</i>, which can be used to compress the whole executable. - login: "sebres"
- mimetype: "text/x-fossil-wiki"