Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
0f3d1efc
Commit
0f3d1efc
authored
Apr 14, 2019
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/nettle-pbkdf2.c: Check strdup return value.
parent
a7dada79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ChangeLog
ChangeLog
+4
-0
tools/nettle-pbkdf2.c
tools/nettle-pbkdf2.c
+3
-0
No files found.
ChangeLog
View file @
0f3d1efc
2019-04-14 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-pbkdf2.c (main): Check strdup return value.
2019-03-29 Niels Möller <nisse@lysator.liu.se>
* aes.h (struct aes_ctx): Redefine using a union of key-size
...
...
tools/nettle-pbkdf2.c
View file @
0f3d1efc
...
...
@@ -144,6 +144,9 @@ main (int argc, char **argv)
}
salt
=
strdup
(
argv
[
0
]);
if
(
!
salt
)
die
(
"strdup failed: Virtual memory exhausted.
\n
"
);
salt_length
=
strlen
(
argv
[
0
]);
if
(
hex_salt
)
...
...
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