Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
2bbfeddf
Commit
2bbfeddf
authored
Oct 09, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: Fix a NULL ptr deref in http-user-agent handling.
parent
a1299460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/access/http.c
modules/access/http.c
+7
-4
No files found.
modules/access/http.c
View file @
2bbfeddf
...
@@ -340,11 +340,14 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
...
@@ -340,11 +340,14 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
/* Determine the HTTP user agent */
/* Determine the HTTP user agent */
/* See RFC2616 §2.2 token definition and §3.8 user-agent header */
/* See RFC2616 §2.2 token definition and §3.8 user-agent header */
p_sys
->
psz_user_agent
=
var_InheritString
(
p_access
,
"http-user-agent"
);
p_sys
->
psz_user_agent
=
var_InheritString
(
p_access
,
"http-user-agent"
);
for
(
char
*
p
=
p_sys
->
psz_user_agent
;
*
p
;
p
++
)
if
(
p_sys
->
psz_user_agent
)
{
{
uint8_t
c
=
*
p
;
for
(
char
*
p
=
p_sys
->
psz_user_agent
;
*
p
;
p
++
)
if
(
c
<
32
||
strchr
(
"()<>@,;:
\\\"
[]?={}"
,
c
)
)
{
*
p
=
'_'
;
/* remove potentially harmful characters */
uint8_t
c
=
*
p
;
if
(
c
<
32
||
strchr
(
"()<>@,;:
\\\"
[]?={}"
,
c
)
)
*
p
=
'_'
;
/* remove potentially harmful characters */
}
}
}
/* Check proxy */
/* Check proxy */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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