Tool Parameter Abuse
- Category
- Tool Misuse
- Confidence
- 85% confidence
- Finding
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
- Content
md 理由:旧 `.git/index` 里的 `cache-tree` 是重建丢失的树的**唯一依据**。 4. **先接引用,再重建索引(顺序不可反)** `git update-ref refs/heads/<branch> <完整的父提交>` → `rm .git/index && git read-tree HEAD` 注意:索引里含失效 blob 时 `git reset --mixed HEAD` 会报 `unable to read <sha>` 而失败,必须删索引重读。 5. **重建缺失 blob 与丢失的树**
