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
58bb2fbd
Commit
58bb2fbd
authored
May 16, 2006
by
Jean-Paul Saman
Browse files
Fix Segmentation fault in RPN while parsing pathnames.
parent
d1652d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/http/rpn.c
View file @
58bb2fbd
...
...
@@ -400,16 +400,17 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
{
char
*
psz_src
=
E_
(
SSPop
)(
st
);
char
*
psz_dest
;
char
*
str
=
psz_src
;
p
=
psz_dest
=
strdup
(
psz_src
);
while
(
*
psz_src
)
while
(
*
str
)
{
if
(
*
psz_src
==
'\\'
&&
*
(
psz_src
+
1
)
)
if
(
*
str
==
'\\'
&&
*
(
str
+
1
)
)
{
psz_src
++
;
str
++
;
}
*
p
++
=
*
psz_src
++
;
*
p
++
=
*
str
++
;
}
*
p
=
'\0'
;
...
...
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