From dca2900263511695aee39d6e1da14748ec8f4027 Mon Sep 17 00:00:00 2001 From: redbinder0526 Date: Fri, 7 Aug 2026 18:03:19 +0200 Subject: [PATCH] fix issue pointed out in #54 thanks @jonbarrow for informing us --- rnex-core/src/prudp/station_url.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rnex-core/src/prudp/station_url.rs b/rnex-core/src/prudp/station_url.rs index 1b8e3bf..97ff448 100644 --- a/rnex-core/src/prudp/station_url.rs +++ b/rnex-core/src/prudp/station_url.rs @@ -93,6 +93,10 @@ impl TryFrom<&str> for StationUrl { fn try_from(value: &str) -> Result { let (url_type, options) = value.split_at(value.find(":/").ok_or(())?); + if value.len() >= 1024 { + return Err(()); + } + let options = &options[2..]; let url_type = match url_type {