diff options
| author | RK28A <243808451+RK28A@users.noreply.github.com> | 2026-11-25 12:23:54 +0000 |
|---|---|---|
| committer | RK28A <243808451+RK28A@users.noreply.github.com> | 2026-11-25 12:24:35 +0000 |
| commit | 58f14c3d68abcc0cca70d4f10965dae313988b6b (patch) | |
| tree | 558f1763196d42eef8598cd9e2e873b0023b2287 /runtime/test/cpp_unwind_test.cpp | |
| parent | 0d80bc5df7c873f40965f34f185cb96913786765 (diff) | |
leonida_mods: install accepts the file names pack writes
zip_parts() decided whether a package member's name was safe by comparing
it with safe_folder_name(), which makes a tidy folder label out of free
text: it also collapses runs of spaces, strips them at both ends and cuts
at 80 characters. So a mod holding `read me.txt`, a file name with an
ideographic space or one longer than 80 characters packed without a word
and could not be installed again: "unsafe ZIP member name". The same ZIP
made by hand was refused the same way.
Members are now checked with portable_name(): no separator, control or
reserved character, no trailing dot or space, not a device name. It also
refuses `COM1 .log`, which the label comparison let through.
`pack` runs the same check before it writes anything, so it stops at a
file `install` would refuse (`con.txt` or `a:b` made on Linux) instead of
writing a package nobody can install.
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions