1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 18:29:45 +02:00
librespot/core/src
Domenico Cerasuolo ce5e2f2392 Fix SpotifyId base 62 and 16 str decoding
A SpotifyId is expected to be a 128 bits integer and can be parsed from a
base 62 or 16 string. However the parsing functions only checked the validity of
the characters of the string, but not its length. This could result in integer
overflows or the parsing of incorrect strings as Spotify ids.

This commit add some checks to the length of the input string passed to the
parse functions, and also checks for integer overflows in case of base62
encoded strings.
2024-05-23 16:21:51 +02:00
..
connection Fix redundant import checking on beta toolchain 2024-03-31 17:37:07 +00:00
dealer Silence compiler warning 2022-02-23 17:08:43 -06:00
mercury add session timeout handling (#1129) 2023-06-01 21:39:35 +02:00
apresolve.rs Fix newly reported clippy errors 2023-01-27 23:15:51 +01:00
audio_key.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
authentication.rs do not overwrite unchanged cached Credentials (#1168) 2023-07-14 00:02:57 +09:00
cache.rs Fix newly reported clippy errors 2023-01-27 23:15:51 +01:00
cdn_url.rs Fix redundant import checking on beta toolchain 2024-03-31 17:37:07 +00:00
channel.rs Various loading improvements 2022-09-28 21:25:56 +02:00
component.rs Change to parking_lot and remove remaining panics 2021-12-26 23:02:02 +01:00
config.rs core: make it easier to change declared OS 2023-12-06 20:42:24 +00:00
date.rs Fix redundant import checking on beta toolchain 2024-03-31 17:37:07 +00:00
diffie_hellman.rs Almost eliminate util module 2021-04-10 12:50:30 +02:00
error.rs Update protobuf and related crates to 3.x (#1092) 2023-01-17 21:46:14 +01:00
file_id.rs Update protobuf and related crates to 3.x (#1092) 2023-01-17 21:46:14 +01:00
http_client.rs Update sysinfo to 0.30.5 2024-02-23 23:24:18 +01:00
lib.rs Rate limit audio file streaming too 2022-09-01 22:35:03 +02:00
packet.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
proxytunnel.rs Fix newly reported clippy errors 2023-01-27 23:15:51 +01:00
session.rs Fix map_clone and explicit truncate when file is create 2024-03-31 14:32:00 +00:00
socket.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
spclient.rs Update sysinfo to 0.30.5 2024-02-23 23:24:18 +01:00
spotify_id.rs Fix SpotifyId base 62 and 16 str decoding 2024-05-23 16:21:51 +02:00
token.rs Fix clippy lint 2022-09-22 16:41:03 -05:00
util.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
version.rs fix: change spotify version needed in clientoken to use semantic format 2024-03-19 22:05:29 +00:00