Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5adb1307
Commit
5adb1307
authored
Dec 31, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
https: NULL deref
(in currently unused code)
parent
6c733dc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
modules/access/http/message.c
modules/access/http/message.c
+3
-1
modules/access/http/message_test.c
modules/access/http/message_test.c
+1
-0
No files found.
modules/access/http/message.c
View file @
5adb1307
...
...
@@ -783,8 +783,10 @@ time_t vlc_http_msg_get_mtime(const struct vlc_http_msg *m)
unsigned
vlc_http_msg_get_retry_after
(
const
struct
vlc_http_msg
*
m
)
{
const
char
*
str
=
vlc_http_msg_get_header
(
m
,
"Retry-After"
);
char
*
end
;
if
(
str
==
NULL
)
return
0
;
char
*
end
;
unsigned
long
delay
=
strtoul
(
str
,
&
end
,
10
);
if
(
end
!=
str
&&
*
end
==
'\0'
)
return
delay
;
...
...
modules/access/http/message_test.c
View file @
5adb1307
...
...
@@ -150,6 +150,7 @@ static time_t parse_date(const char *str)
t1
=
vlc_http_msg_get_atime
(
m
);
assert
(
vlc_http_msg_add_header
(
m
,
"Last-Modified"
,
"%s"
,
str
)
==
0
);
t2
=
vlc_http_msg_get_mtime
(
m
);
assert
(
vlc_http_msg_get_retry_after
(
m
)
==
0
);
assert
(
vlc_http_msg_add_header
(
m
,
"Retry-After"
,
"%s"
,
str
)
==
0
);
vlc_http_msg_get_retry_after
(
m
);
vlc_http_msg_destroy
(
m
);
...
...
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