Overflow in utils::vault_by_index_or_name function #48

Closed
opened 2024-05-13 13:45:41 +02:00 by awiteb · 0 comments
Owner

Overflow if the index is 0

Lines 220 to 222 in 6f83bcc
let Some((index, vault)) = (if let Ok(index) = parsed_index {
vaults.get_mut(index - 1).map(|v| (index, v))
} else {

Overflow if the index is 0 https://git.4rs.nl/awiteb/lprs/src/commit/6f83bcccf94/src/utils.rs#L220-L222
awiteb added the
Kind/Bug
Reviewed
Confirmed
Good First Issue
labels 2024-05-13 13:45:41 +02:00
awiteb added this to the v2.0.0 milestone 2024-05-13 13:48:15 +02: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: awiteb/lprs#48
No description provided.