[SECURITY] MEDIUM: --detail argument silently defaults when out of range #7
Reference in New Issue
Block a user
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?
Severity: MEDIUM
The
--detail Nargument is used to index intoresult["match_events"]without proper bounds checking. It silently defaults to index 0 when out of range.Location
scripts/browse.pylines 778-785 (main())Current Behavior
Recommended Fix
Warn user if index is out of range instead of silently defaulting:
Reference
See
reviews/2026-03-25.mdSection 6.5