Skip to content

Commit

Permalink
Reword comment
Browse files Browse the repository at this point in the history
  • Loading branch information
recrsn committed Jun 1, 2020
1 parent ca1e43b commit f28e916
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bcrypt.cc
Expand Up @@ -217,9 +217,7 @@ bcrypt(const char *key, size_t key_len, const char *salt, char *encrypted)
key_len = (u_int8_t)(key_len + (minor >= 'a' ? 1 : 0));
else
{
/* size_t, but the function calls
* below result in implicit casts to a narrower integer
* type, so cap key_len at the actual maximum supported
/* cap key_len at the actual maximum supported
* length here to avoid integer wraparound */
if (key_len > 72)
key_len = 72;
Expand Down

0 comments on commit f28e916

Please sign in to comment.