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
de598f82
Commit
de598f82
authored
Oct 15, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_edgedetect: fix heap-buffer overflow
Fixes #8275
parent
f069a9c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vf_edgedetect.c
libavfilter/vf_edgedetect.c
+6
-3
No files found.
libavfilter/vf_edgedetect.c
View file @
de598f82
...
...
@@ -155,7 +155,8 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
}
for
(
j
=
2
;
j
<
h
-
2
;
j
++
)
{
dst
[
0
]
=
src
[
0
];
dst
[
1
]
=
src
[
1
];
if
(
w
>
1
)
dst
[
1
]
=
src
[
1
];
for
(
i
=
2
;
i
<
w
-
2
;
i
++
)
{
/* Gaussian mask of size 5x5 with sigma = 1.4 */
dst
[
i
]
=
((
src
[
-
2
*
src_linesize
+
i
-
2
]
+
src
[
2
*
src_linesize
+
i
-
2
])
*
2
...
...
@@ -176,8 +177,10 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
+
src
[
i
+
1
]
*
12
+
src
[
i
+
2
]
*
5
)
/
159
;
}
dst
[
i
]
=
src
[
i
];
dst
[
i
+
1
]
=
src
[
i
+
1
];
if
(
w
>
2
)
dst
[
i
]
=
src
[
i
];
if
(
w
>
3
)
dst
[
i
+
1
]
=
src
[
i
+
1
];
dst
+=
dst_linesize
;
src
+=
src_linesize
;
...
...
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