core: vlc_UrlParse accepts arbitrary data after port-specification
The current implementation of vlc_UrlParse
accepts data such as http://example.com:hello:world/foobar.mp3
, which from the callees point-of-view is equivalent to passing http://example.com/foobar.mp3
.
Elaboration
The described behavior is due to not checking for pending/invalid data when using atoi
at the following location:
Extra information
The behavior is also reproducible in 2.2.4
.