[vlc-commits] [Git][videolan/vlc][3.0.x] url: validate the query string

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Nov 15 16:21:20 UTC 2026



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
c3d068c8 by Rémi Denis-Courmont at 2026-11-14T21:16:34+02:00
url: validate the query string

Fixes: #30366.
Reported-as: ANT-2026-XWF7EELM
(cherry picked from commit 8f190ac13f7d6e417de36be14aa04e722587a4bc)

- - - - -


1 changed file:

- src/text/url.c


Changes:

=====================================
src/text/url.c
=====================================
@@ -457,6 +457,11 @@ static int vlc_UrlParseInner(vlc_url_t *restrict url, const char *str)
     if (next != NULL)
     {
         *(next++) = '\0';
+        if (!vlc_uri_component_validate(next, ":@/?"))
+        {
+            errno = EINVAL;
+            return -1;
+        }
         url->psz_option = next;
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c3d068c8553c87efa37aa645cdbdc15ed0d42f30

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c3d068c8553c87efa37aa645cdbdc15ed0d42f30
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list