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
3b93bea9
Commit
3b93bea9
authored
Apr 04, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: Check EBML lace sizes.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
115c3bc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
matroskadec.c
libavformat/matroskadec.c
+4
-4
No files found.
libavformat/matroskadec.c
View file @
3b93bea9
...
...
@@ -2027,10 +2027,10 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
uint64_t
num
;
uint64_t
total
;
n
=
matroska_ebmlnum_uint
(
matroska
,
data
,
size
,
&
num
);
if
(
n
<
0
)
{
if
(
n
<
0
||
num
>
INT_MAX
)
{
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
"EBML block data error
\n
"
);
res
=
n
;
res
=
n
<
0
?
n
:
AVERROR_INVALIDDATA
;
break
;
}
data
+=
n
;
...
...
@@ -2040,10 +2040,10 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
int64_t
snum
;
int
r
;
r
=
matroska_ebmlnum_sint
(
matroska
,
data
,
size
,
&
snum
);
if
(
r
<
0
)
{
if
(
r
<
0
||
lace_size
[
n
-
1
]
+
snum
>
(
uint64_t
)
INT_MAX
)
{
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
"EBML block data error
\n
"
);
res
=
r
;
res
=
r
<
0
?
r
:
AVERROR_INVALIDDATA
;
break
;
}
data
+=
r
;
...
...
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