You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The abbreviate_public_key function in warpgate-protocol-http/src/api/credentials.rs panics when handling keys shorter than the defined abbreviation length (10 characters). This happens because the subtraction used to calculate the starting index for the last l characters (k.len() - l) results in an underflow for short keys.
thread 'main' panicked at 'attempt to subtract with overflow', src/api/credentials.rs:90:12
The text was updated successfully, but these errors were encountered:
moalshak
changed the title
Issue Title: abbreviate_public_key Function Panics on Short Keys Due to Underflow
abbreviate_public_key Function Panics on Short Keys Due to Underflow
Dec 18, 2024
The abbreviate_public_key function in warpgate-protocol-http/src/api/credentials.rs panics when handling keys shorter than the defined abbreviation length (10 characters). This happens because the subtraction used to calculate the starting index for the last l characters (k.len() - l) results in an underflow for short keys.
The text was updated successfully, but these errors were encountered: