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
581281e2
Commit
581281e2
authored
Sep 14, 2012
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: check realloc in lzo encoding
Make all the compression encodings behave the same way.
parent
cd4739c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
matroskadec.c
libavformat/matroskadec.c
+5
-1
No files found.
libavformat/matroskadec.c
View file @
581281e2
...
@@ -999,7 +999,11 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
...
@@ -999,7 +999,11 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
case
MATROSKA_TRACK_ENCODING_COMP_LZO
:
case
MATROSKA_TRACK_ENCODING_COMP_LZO
:
do
{
do
{
olen
=
pkt_size
*=
3
;
olen
=
pkt_size
*=
3
;
pkt_data
=
av_realloc
(
pkt_data
,
pkt_size
+
AV_LZO_OUTPUT_PADDING
);
newpktdata
=
av_realloc
(
pkt_data
,
pkt_size
+
AV_LZO_OUTPUT_PADDING
);
if
(
!
newpktdata
)
{
goto
failed
;
}
pkt_data
=
newpktdata
;
result
=
av_lzo1x_decode
(
pkt_data
,
&
olen
,
data
,
&
isize
);
result
=
av_lzo1x_decode
(
pkt_data
,
&
olen
,
data
,
&
isize
);
}
while
(
result
==
AV_LZO_OUTPUT_FULL
&&
pkt_size
<
10000000
);
}
while
(
result
==
AV_LZO_OUTPUT_FULL
&&
pkt_size
<
10000000
);
if
(
result
)
if
(
result
)
...
...
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