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
81e85bc9
Commit
81e85bc9
authored
Mar 26, 2013
by
Dale Curtis
Committed by
Michael Niedermayer
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix heap-buffer-overflow in matroska_parse_block
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e9d3b400
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
matroskadec.c
libavformat/matroskadec.c
+4
-3
No files found.
libavformat/matroskadec.c
View file @
81e85bc9
...
...
@@ -1961,10 +1961,10 @@ static void matroska_clear_queue(MatroskaDemuxContext *matroska)
}
static
int
matroska_parse_laces
(
MatroskaDemuxContext
*
matroska
,
uint8_t
**
buf
,
int
size
,
int
type
,
int
*
buf_
size
,
int
type
,
uint32_t
**
lace_buf
,
int
*
laces
)
{
int
res
=
0
,
n
;
int
res
=
0
,
n
,
size
=
*
buf_size
;
uint8_t
*
data
=
*
buf
;
uint32_t
*
lace_size
;
...
...
@@ -2062,6 +2062,7 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
*
buf
=
data
;
*
lace_buf
=
lace_size
;
*
buf_size
=
size
;
return
res
;
}
...
...
@@ -2299,7 +2300,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
matroska
->
skip_to_keyframe
=
0
;
}
res
=
matroska_parse_laces
(
matroska
,
&
data
,
size
,
(
flags
&
0x06
)
>>
1
,
res
=
matroska_parse_laces
(
matroska
,
&
data
,
&
size
,
(
flags
&
0x06
)
>>
1
,
&
lace_size
,
&
laces
);
if
(
res
)
...
...
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