Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
64a80588
Commit
64a80588
authored
Oct 16, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_gblur: fix heap-buffer overflow
Fixes #8282
parent
e14f5fd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vf_gblur.c
libavfilter/vf_gblur.c
+1
-1
vf_gblur.asm
libavfilter/x86/vf_gblur.asm
+2
-2
No files found.
libavfilter/vf_gblur.c
View file @
64a80588
...
...
@@ -236,7 +236,7 @@ static int config_input(AVFilterLink *inlink)
s
->
nb_planes
=
av_pix_fmt_count_planes
(
inlink
->
format
);
s
->
buffer
=
av_malloc_array
(
inlink
->
w
,
inlink
->
h
*
sizeof
(
*
s
->
buffer
));
s
->
buffer
=
av_malloc_array
(
FFALIGN
(
inlink
->
w
,
16
),
FFALIGN
(
inlink
->
h
,
16
)
*
sizeof
(
*
s
->
buffer
));
if
(
!
s
->
buffer
)
return
AVERROR
(
ENOMEM
);
...
...
libavfilter/x86/vf_gblur.asm
View file @
64a80588
...
...
@@ -100,7 +100,7 @@ cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step,
add
widthq
,
remainq
cmp
xq
,
widthq
je
.
end_scalar
j
g
e
.
end_scalar
.
loop_scalar
:
; ptr[x] += nu * ptr[x-1]
...
...
@@ -148,7 +148,7 @@ cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step,
jg
.
loop_x_back
cmp
xq
,
0
je
.
end_scalar_back
j
l
e
.
end_scalar_back
.
loop_scalar_back
:
; ptr[x-1] += nu * ptr[x]
...
...
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