Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
02ac3398
Commit
02ac3398
authored
Feb 23, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmpproto: Check APP_MAX_LENGTH
Fixes Ticket2292 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
df63e0c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rtmpproto.c
libavformat/rtmpproto.c
+6
-2
No files found.
libavformat/rtmpproto.c
View file @
02ac3398
...
...
@@ -2367,16 +2367,20 @@ reconnect:
fname
=
strchr
(
p
+
1
,
'/'
);
if
(
!
fname
||
(
c
&&
c
<
fname
))
{
fname
=
p
+
1
;
av_strlcpy
(
rt
->
app
,
path
+
1
,
p
-
path
);
av_strlcpy
(
rt
->
app
,
path
+
1
,
FFMIN
(
p
-
path
,
APP_MAX_LENGTH
)
);
}
else
{
fname
++
;
av_strlcpy
(
rt
->
app
,
path
+
1
,
fname
-
path
-
1
);
av_strlcpy
(
rt
->
app
,
path
+
1
,
FFMIN
(
fname
-
path
-
1
,
APP_MAX_LENGTH
)
);
}
}
}
if
(
old_app
)
{
// The name of application has been defined by the user, override it.
if
(
strlen
(
old_app
)
>=
APP_MAX_LENGTH
)
{
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
}
av_free
(
rt
->
app
);
rt
->
app
=
old_app
;
}
...
...
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