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
0ea47423
Commit
0ea47423
authored
Dec 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt-faststart: Check offset_count
Fixes CID733836 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
eee8c94f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
qt-faststart.c
tools/qt-faststart.c
+8
-0
No files found.
tools/qt-faststart.c
View file @
0ea47423
...
...
@@ -235,6 +235,10 @@ int main(int argc, char *argv[])
goto
error_out
;
}
offset_count
=
BE_32
(
&
moov_atom
[
i
+
8
]);
if
(
i
+
12LL
+
offset_count
*
4LL
>
moov_atom_size
)
{
printf
(
" bad atom size
\n
"
);
goto
error_out
;
}
for
(
j
=
0
;
j
<
offset_count
;
j
++
)
{
current_offset
=
BE_32
(
&
moov_atom
[
i
+
12
+
j
*
4
]);
current_offset
+=
moov_atom_size
;
...
...
@@ -252,6 +256,10 @@ int main(int argc, char *argv[])
goto
error_out
;
}
offset_count
=
BE_32
(
&
moov_atom
[
i
+
8
]);
if
(
i
+
12LL
+
offset_count
*
8LL
>
moov_atom_size
)
{
printf
(
" bad atom size
\n
"
);
goto
error_out
;
}
for
(
j
=
0
;
j
<
offset_count
;
j
++
)
{
current_offset
=
BE_64
(
&
moov_atom
[
i
+
12
+
j
*
8
]);
current_offset
+=
moov_atom_size
;
...
...
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