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
2940af93
Commit
2940af93
authored
May 18, 2018
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/checkasm/nlmeans: fix invalid read/write on ii buffer
parent
eb28b5ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_nlmeans.c
tests/checkasm/vf_nlmeans.c
+4
-4
No files found.
tests/checkasm/vf_nlmeans.c
View file @
2940af93
...
...
@@ -80,8 +80,8 @@ void checkasm_check_nlmeans(void)
av_assert0
(
startx_safe
-
s2x
>=
0
);
av_assert0
(
startx_safe
-
s2x
<
w
);
av_assert0
(
starty_safe
-
s2y
>=
0
);
av_assert0
(
starty_safe
-
s2y
<
h
);
memset
(
ii_ref
,
0
,
ii_lz_32
*
ii_h
*
sizeof
(
*
ii_ref
));
memset
(
ii_new
,
0
,
ii_lz_32
*
ii_h
*
sizeof
(
*
ii_new
));
memset
(
ii_ref
,
0
,
(
ii_lz_32
*
ii_h
-
1
)
*
sizeof
(
*
ii_ref
));
memset
(
ii_new
,
0
,
(
ii_lz_32
*
ii_h
-
1
)
*
sizeof
(
*
ii_new
));
call_ref
(
ii_ref
+
starty_safe
*
ii_lz_32
+
startx_safe
,
ii_lz_32
,
src
+
(
starty_safe
-
s1y
)
*
src_lz
+
(
startx_safe
-
s1x
),
src_lz
,
...
...
@@ -92,10 +92,10 @@ void checkasm_check_nlmeans(void)
src
+
(
starty_safe
-
s2y
)
*
src_lz
+
(
startx_safe
-
s2x
),
src_lz
,
safe_pw
,
safe_ph
);
if
(
memcmp
(
ii_ref
,
ii_new
,
ii_h
*
ii_lz_32
*
4
))
if
(
memcmp
(
ii_ref
,
ii_new
,
(
ii_lz_32
*
ii_h
-
1
)
*
sizeof
(
*
ii_ref
)
))
fail
();
memset
(
ii_new
,
0
,
ii_lz_32
*
ii_h
*
sizeof
(
*
ii_new
));
memset
(
ii_new
,
0
,
(
ii_lz_32
*
ii_h
-
1
)
*
sizeof
(
*
ii_new
));
bench_new
(
ii_new
+
starty_safe
*
ii_lz_32
+
startx_safe
,
ii_lz_32
,
src
+
(
starty_safe
-
s1y
)
*
src_lz
+
(
startx_safe
-
s1x
),
src_lz
,
src
+
(
starty_safe
-
s2y
)
*
src_lz
+
(
startx_safe
-
s2x
),
src_lz
,
...
...
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