Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
2b552abd
Commit
2b552abd
authored
Sep 17, 2014
by
Niels Möller
Browse files
Fixed mpn_get_base256_le buffer overwrite.
parent
c9879bcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2b552abd
2014-09-17 Niels Möller <nisse@lysator.liu.se>
* gmp-glue.c (mpn_get_base256_le): Fixed missing update of rn
counter, making the function clear some bytes beyond the end of
the output buffer. The bug triggered a make check failure on ARM.
* testsuite/testutils.c (ecc_curves): Include curve25519 in list.
(test_ecc_mul_a): Include reference points for curve25519 (with
Edwards coordinates). Allow n == 0 and n == 1, comparing to zero
...
...
gmp-glue.c
View file @
2b552abd
...
...
@@ -293,6 +293,7 @@ mpn_get_base256_le (uint8_t *rp, size_t rn,
in
=
*
xp
++
;
xn
--
;
*
rp
++
=
old
|
(
in
<<
bits
);
rn
--
;
in
>>=
(
8
-
bits
);
bits
+=
GMP_NUMB_BITS
-
8
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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