CVE-2024-21875: Uncapped Circular Increment After Resetcve-2024-21875-uncapped-circular-increment-after-reset
Detected an unconditional increment of an index/cursor after a boundary check and reset. This logic causes the cursor to go out of bounds before the check (off-by-one) and skips the 0th element after a reset. Ensure the increment happens in an `else` branch or fix the bounds logic.