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
aaf43145
Commit
aaf43145
authored
Feb 20, 2013
by
Niels Möller
Browse files
Fixed TMP_ALLOC, was missing parentheses.
parent
8cf51d22
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
aaf43145
2013-02-20 Niels Möller <nisse@lysator.liu.se>
* nettle-internal.h (TMP_ALLOC): Added missing parentheses.
2013-02-18 Niels Möller <nisse@lysator.liu.se>
* testsuite/ecdsa-verify-test.c: New testcase.
...
...
nettle-internal.h
View file @
aaf43145
...
...
@@ -36,11 +36,11 @@
#if HAVE_ALLOCA
# define TMP_DECL(name, type, max) type *name
# define TMP_ALLOC(name, size) (name = alloca(sizeof (*name) * size))
# define TMP_ALLOC(name, size) (name = alloca(sizeof (*name) *
(
size))
)
#else
/* !HAVE_ALLOCA */
# define TMP_DECL(name, type, max) type name[max]
# define TMP_ALLOC(name, size) \
do { if (size > (sizeof(name) / sizeof(name[0]))) abort(); } while (0)
do { if
(
(size
)
> (sizeof(name) / sizeof(name[0]))) abort(); } while (0)
#endif
/* Arbitrary limits which apply to systems that don't have alloca */
...
...
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