[PR #880] [MERGED] Guard against tracks_len being zero #1128

Closed
opened 2026-02-27 20:01:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/880
Author: @JasonLG1979
Created: 11/18/2021
Status: Merged
Merged: 11/19/2021
Merged by: @roderickvd

Base: devHead: fix_index_out_bounds_spirc


📝 Commits (1)

  • 3016d6f Guard against tracks_len being zero

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 connect/src/spirc.rs (+8 -0)

📄 Description

to prevent 'index out of bounds: the len is 0 but the index is 0'
https://github.com/librespot-org/librespot/issues/226#issuecomment-971642037


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/880 **Author:** [@JasonLG1979](https://github.com/JasonLG1979) **Created:** 11/18/2021 **Status:** ✅ Merged **Merged:** 11/19/2021 **Merged by:** [@roderickvd](https://github.com/roderickvd) **Base:** `dev` ← **Head:** `fix_index_out_bounds_spirc` --- ### 📝 Commits (1) - [`3016d6f`](https://github.com/librespot-org/librespot/commit/3016d6fbdb867eeb9cff7aa19fe61fa29ea13b72) Guard against tracks_len being zero ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `connect/src/spirc.rs` (+8 -0) </details> ### 📄 Description to prevent 'index out of bounds: the len is 0 but the index is 0' https://github.com/librespot-org/librespot/issues/226#issuecomment-971642037 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:01:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#1128
No description provided.