mirror of
https://github.com/fairyglade/ly.git
synced 2026-11-05 09:41:43 +00:00
## What are the changes about? Fixes an integer underflow in `min_session_index`, which was computed by subtracting 1 from the session list length without checking for zero. Caused a panic (Debug/ReleaseSafe) or wraparound (ReleaseFast) on installs with no available sessions. ## What existing issue(s) does this resolve? N/A ## Pre-requisites - [x] I have tested & confirmed the changes work locally - [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md` Co-authored-by: Matheus C. <245040149+matheusc457@users.noreply.github.com> Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1060 Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>