[MEDIUM] falsify.py: make_subprocess_falsifier silently discards non-zero subprocess exit #8
Labels
No labels
bug
code-review
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
foravo/mesh-review-comment-proof-20260519044241#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub issue
M00C1FER/mesh-review#5.Source: https://github.com/M00C1FER/mesh-review/issues/5
Original author: @M00C1FER
Original state: closed
Finding 4 — MEDIUM
File:
src/mesh_review/review/falsify.pyFunction:
make_subprocess_falsifier()→ inner closureCommit fixing this: 834f8d8441226ac383868a9cb8ac5c69b650581e (PR #1)
Description
make_subprocess_falsifiercallssubprocess.run()but does not check the returncode:A non-zero exit (CLI error, missing model) causes
proc.stdoutto be empty or contain error text, which_parse_falsifier_outputcannot parse, returningNone. This falls through to a generic"model returned unparseable output"error — correct result, but the root cause (non-zero exit / stderr) is lost.Fix Applied
Imported from GitHub issue comment
M00C1FER/mesh-review#5:4362220530.Source: https://github.com/M00C1FER/mesh-review/issues/5#issuecomment-4362220530
Original author: @M00C1FER
Fixed by merged PR #1.