Repository navigation
Description
Part of #149.
wave 1 · 0.17.11 · size M
Goal. Untrusted names and images cannot steer the terminal or a decoder, imports refuse before they copy, and a closed pipe is a quiet exit.
Owns: cli.py, commands/import_data.py, commands/ls.py, util/markup.py, formats/image.py, conversion/spatial.py (image opening only), formats/dataframe.py and formats/json_data.py (added: import dataframe and import dict read their input once, in the precheck, and the write reuses it), conversion/visium.py (_images() only: each tissue image checked while planning), and the rules sections of AGENTS.md and docs/developers.md (B5 edits their Releases sections)
Approach:
Image.open(path, formats=[...])with the formats the docs list, forimport imageand the Visium and Xenium tissue images.literal()shows C0 and C1 control characters as visible escapes;ls --plainescapes them too, or gains-0.- Every import subcommand runs
check_target(and the CSV header scan) in_precheck, before staging copies the source. BrokenPipeErrorhandled once inmain, asexportalready does.- Python warnings print as one
Warning:line through the console.
Findings
| Ref | Sev | Finding | Where |
|---|---|---|---|
| F181 | M | import dataframe, dict and image refuse a forbidden target only after copying the whole source |
cli.py:1760, commands/import_data.py:124 |
| F182 | M | Image inputs are decoded by every Pillow plugin, not only the documented formats | conversion/spatial.py:230, formats/image.py:128 |
| F183 | M | Control characters in member names reach the terminal | util/markup.py:21 |
| F184 | L | Piping ls -1 or export image into head reports Error: Broken pipe and exits 1 |
cli.py:323, formats/image.py:51 |
| F185 | L | Python warnings reach stderr with source path and line, not as Warning: lines | cli.py:1824 |
| F186 | L | ls --plain writes names holding newlines as several paths |
commands/ls.py:88 |
Done when one PR on fix/b3 closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.
Activity