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
ae217762
Commit
ae217762
authored
Dec 27, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add missing check in avfilter_filter_samples()
Avoid out-of-buffer data access when nb_channels is 8.
parent
e9af732a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
avfilter.c
libavfilter/avfilter.c
+1
-1
No files found.
libavfilter/avfilter.c
View file @
ae217762
...
...
@@ -678,7 +678,7 @@ void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
link
->
cur_buf
->
audio
->
sample_rate
=
samplesref
->
audio
->
sample_rate
;
/* Copy actual data into new samples buffer */
for
(
i
=
0
;
samplesref
->
data
[
i
];
i
++
)
for
(
i
=
0
;
samplesref
->
data
[
i
]
&&
i
<
8
;
i
++
)
memcpy
(
link
->
cur_buf
->
data
[
i
],
samplesref
->
data
[
i
],
samplesref
->
linesize
[
0
]);
avfilter_unref_buffer
(
samplesref
);
...
...
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