Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
90e3aee6
Commit
90e3aee6
authored
Sep 14, 2017
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround to silence the clang static analyzer.
parent
78823b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
ChangeLog
ChangeLog
+5
-0
ecc-mod.c
ecc-mod.c
+7
-1
No files found.
ChangeLog
View file @
90e3aee6
2017-09-14 Niels Möller <nisse@lysator.liu.se>
* ecc-mod.c (ecc_mod): Workaround to silence a false positive from
the clang static analyzer.
2017-09-12 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.h (mpn_zero_p): Avoid redefining mpn_zero_p
...
...
ecc-mod.c
View file @
90e3aee6
...
...
@@ -51,7 +51,7 @@ ecc_mod (const struct ecc_modulo *m, mp_limb_t *rp)
mp_size_t
i
;
unsigned
shift
;
assert
(
sn
>
0
);
assert
(
bn
<
mn
);
/* FIXME: Could use mpn_addmul_2. */
/* Eliminate sn limbs at a time */
...
...
@@ -72,6 +72,12 @@ ecc_mod (const struct ecc_modulo *m, mp_limb_t *rp)
}
else
{
/* The loop below always runs at least once. But the analyzer
doesn't realize that, and complains about hi being used later
on without a well defined value. */
#ifdef __clang_analyzer__
hi
=
0
;
#endif
while
(
rn
>=
2
*
mn
-
bn
)
{
rn
-=
sn
;
...
...
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