Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
2b552abd
Commit
2b552abd
authored
Sep 17, 2014
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed mpn_get_base256_le buffer overwrite.
parent
c9879bcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
gmp-glue.c
+1
-0
1 addition, 0 deletions
gmp-glue.c
with
5 additions
and
0 deletions
ChangeLog
+
4
−
0
View file @
2b552abd
2014-09-17 Niels Möller <nisse@lysator.liu.se>
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.
* testsuite/testutils.c (ecc_curves): Include curve25519 in list.
(test_ecc_mul_a): Include reference points for curve25519 (with
(test_ecc_mul_a): Include reference points for curve25519 (with
Edwards coordinates). Allow n == 0 and n == 1, comparing to zero
Edwards coordinates). Allow n == 0 and n == 1, comparing to zero
...
...
This diff is collapsed.
Click to expand it.
gmp-glue.c
+
1
−
0
View file @
2b552abd
...
@@ -293,6 +293,7 @@ mpn_get_base256_le (uint8_t *rp, size_t rn,
...
@@ -293,6 +293,7 @@ mpn_get_base256_le (uint8_t *rp, size_t rn,
in
=
*
xp
++
;
in
=
*
xp
++
;
xn
--
;
xn
--
;
*
rp
++
=
old
|
(
in
<<
bits
);
*
rp
++
=
old
|
(
in
<<
bits
);
rn
--
;
in
>>=
(
8
-
bits
);
in
>>=
(
8
-
bits
);
bits
+=
GMP_NUMB_BITS
-
8
;
bits
+=
GMP_NUMB_BITS
-
8
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment