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
96bfb677
Commit
96bfb677
authored
Oct 18, 2014
by
Luca Barbato
Committed by
Vittorio Giovara
Oct 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nutdec: Prevent a memory corruption
Chapters do not have an event_flags field. Bug-Id: CID 1231990
parent
350ed182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
nutdec.c
libavformat/nutdec.c
+3
-2
No files found.
libavformat/nutdec.c
View file @
96bfb677
...
...
@@ -461,7 +461,7 @@ static int decode_info_header(NUTContext *nut)
int64_t
value
,
end
;
char
name
[
256
],
str_value
[
1024
],
type_str
[
256
];
const
char
*
type
;
int
*
event_flags
;
int
*
event_flags
=
NULL
;
AVChapter
*
chapter
=
NULL
;
AVStream
*
st
=
NULL
;
AVDictionary
**
metadata
=
NULL
;
...
...
@@ -529,7 +529,8 @@ static int decode_info_header(NUTContext *nut)
}
if
(
metadata
&&
av_strcasecmp
(
name
,
"Uses"
)
&&
av_strcasecmp
(
name
,
"Depends"
)
&&
av_strcasecmp
(
name
,
"Replaces"
))
{
*
event_flags
|=
metadata_flag
;
if
(
event_flags
)
*
event_flags
|=
metadata_flag
;
av_dict_set
(
metadata
,
name
,
str_value
,
0
);
}
}
...
...
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