projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fgets: avoid arithmetic overflow when n==INT_MIN is passed
[musl]
/
src
/
crypt
/
crypt_sha256.c
diff --git
a/src/crypt/crypt_sha256.c
b/src/crypt/crypt_sha256.c
index
d5f0b78
..
e885dc6
100644
(file)
--- a/
src/crypt/crypt_sha256.c
+++ b/
src/crypt/crypt_sha256.c
@@
-230,7
+230,7
@@
static char *sha256crypt(const char *key, const char *setting, char *output)
if (u < ROUNDS_MIN)
r = ROUNDS_MIN;
else if (u > ROUNDS_MAX)
- r
= ROUNDS_MAX
;
+ r
eturn 0
;
else
r = u;
/* needed when rounds is zero prefixed or out of bounds */