X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmisc%2Fcrypt_des.c;h=d7b2b15af40be3bdc71b5554f154e11615b35758;hb=c8ea985748a6857ac5db9ef50f9c92e2966c04d5;hp=4454a130de79208089875ecc6c29a067a9763752;hpb=2d93d6446191def352b8913e859d6104f1398c72;p=musl diff --git a/src/misc/crypt_des.c b/src/misc/crypt_des.c index 4454a130..d7b2b15a 100644 --- a/src/misc/crypt_des.c +++ b/src/misc/crypt_des.c @@ -911,7 +911,7 @@ static char *_crypt_extended_r_uut(const char *_key, const char *_setting, char return NULL; count |= value << (i - 1) * 6; } - if (!count) + if (!count || count > 262143) return NULL; for (i = 5, salt = 0; i < 9; i++) {