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
f63666d1
Commit
f63666d1
authored
Sep 15, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remote DoS in RTSP code
parent
0edba7e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
modules/misc/rtsp.c
modules/misc/rtsp.c
+6
-0
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+6
-0
No files found.
modules/misc/rtsp.c
View file @
f63666d1
...
...
@@ -678,6 +678,12 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
psz_playnow
=
httpd_MsgGet
(
query
,
"x-playNow"
);
psz_transport
=
httpd_MsgGet
(
query
,
"Transport"
);
if
(
psz_transport
==
NULL
)
{
answer
->
i_status
=
400
;
answer
->
psz_status
=
strdup
(
"Bad request"
);
break
;
}
msg_Dbg
(
p_vod
,
"HTTPD_MSG_SETUP: transport=%s"
,
psz_transport
);
if
(
strstr
(
psz_transport
,
"unicast"
)
&&
...
...
modules/stream_out/rtp.c
View file @
f63666d1
...
...
@@ -1855,6 +1855,12 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
case
HTTPD_MSG_SETUP
:
{
char
*
psz_transport
=
httpd_MsgGet
(
query
,
"Transport"
);
if
(
psz_transport
==
NULL
)
{
answer
->
i_status
=
400
;
answer
->
psz_status
=
strdup
(
"Bad request"
);
break
;
}
//fprintf( stderr, "HTTPD_MSG_SETUP: transport=%s\n", psz_transport );
...
...
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