Validate channel start <= end in parseChannelRange

This commit is contained in:
Ian Gulliver
2026-01-28 12:56:02 -08:00
parent 416e67b3f1
commit bc3736bc56

View File

@@ -188,6 +188,9 @@ func parseChannelRange(spec string, start, end *int) error {
*start = ch *start = ch
*end = ch *end = ch
} }
if *start > *end {
return fmt.Errorf("channel start %d > end %d", *start, *end)
}
return nil return nil
} }