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
b7702faf
Commit
b7702faf
authored
Jan 20, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid a possible overflow when reading Nikon avi files.
Suggested-by: Reimar
parent
9b78abae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
avidec.c
libavformat/avidec.c
+1
-2
No files found.
libavformat/avidec.c
View file @
b7702faf
...
...
@@ -350,8 +350,7 @@ static void avi_read_nikon(AVFormatContext *s, uint64_t end)
uint16_t
size
=
avio_rl16
(
s
->
pb
);
const
char
*
name
=
NULL
;
char
buffer
[
64
]
=
{
0
};
if
(
avio_tell
(
s
->
pb
)
+
size
>
tag_end
)
size
=
tag_end
-
avio_tell
(
s
->
pb
);
size
=
FFMIN
(
size
,
tag_end
-
avio_tell
(
s
->
pb
));
size
-=
avio_read
(
s
->
pb
,
buffer
,
FFMIN
(
size
,
sizeof
(
buffer
)
-
1
));
switch
(
tag
)
{
...
...
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