Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
48677cbc
Commit
48677cbc
authored
Aug 22, 2014
by
Rémi Denis-Courmont
Browse files
url: fix out-of-bound read
...if *next is '\0'.
parent
f852c604
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/text/url.c
View file @
48677cbc
...
...
@@ -412,7 +412,7 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char *str, unsigned char opt)
/* URL scheme */
next
=
buf
;
while
((
*
next
>=
'A'
&&
*
next
<=
'Z'
)
||
(
*
next
>=
'a'
&&
*
next
<=
'z'
)
||
(
*
next
>=
'0'
&&
*
next
<=
'9'
)
||
(
str
chr
(
"+-."
,
*
next
)
!=
NULL
)
)
||
(
*
next
>=
'0'
&&
*
next
<=
'9'
)
||
mem
chr
(
"+-."
,
*
next
,
3
)
!=
NULL
)
next
++
;
/* This is not strictly correct. In principles, the scheme is always
* present in an absolute URL and followed by a colon. Depending on the
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment