Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
abf3870c
Commit
abf3870c
authored
Jun 04, 2014
by
Niels Möller
Browse files
des-compat-test: Fix out of bounds memory read.
parent
e5d11c27
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
abf3870c
2014-06-04 Niels Möller <nisse@lysator.liu.se>
* testsuite/des-compat-test.c (test_main): Fixed out of bounds
memory read, reported by Nikos Mavrogiannopoulos.
* nettle-write.h: Include <stddef.h>, fixing compilation on
freebsd.
...
...
testsuite/des-compat-test.c
View file @
abf3870c
...
...
@@ -358,7 +358,7 @@ test_main(void)
printf
(
"Key error %2d:%d
\n
"
,
i
+
2
,
j
);
err
=
1
;
}
if
((
j
=
des_key_sched
(
&
key_data
[
i
+
2
],
ks3
))
!=
0
)
if
(
i
+
2
<
NUM_TESTS
&&
(
j
=
des_key_sched
(
&
key_data
[
i
+
2
],
ks3
))
!=
0
)
{
printf
(
"Key error %2d:%d
\n
"
,
i
+
3
,
j
);
err
=
1
;
...
...
Write
Preview
Supports
Markdown
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