Tool Parameter Abuse
- Category
- Tool Misuse
- Confidence
- 97% confidence
- Finding
The command recursively deletes /tmp/fh before using it as a clean test HOME, without checking whether its existing contents belong to this task. This is the same bounded data-loss issue identified by the SQP-2 finding, not evidence of malicious intent or filesystem-wide deletion.
- Content
md 复现 CI 条件: rm -rf /tmp/fh && mkdir -p /tmp/fh && HOME=/tmp/fh go test -count=1 ./... 干净 HOME 下全过,才算真的修好。
