diff options
author | otto <> | 2006-07-04 19:06:00 +0000 |
---|---|---|
committer | otto <> | 2006-07-04 19:06:00 +0000 |
commit | bff9f9f3b2451cc7bda0f7cdfafed844fe06000f (patch) | |
tree | d74afa498985ca1935416ca09535605103a928d1 /src/lib/libc/crypt | |
parent | 990e4fb875d19dcafbb47015b642c4f29d2dfd46 (diff) | |
download | openbsd-bff9f9f3b2451cc7bda0f7cdfafed844fe06000f.tar.gz openbsd-bff9f9f3b2451cc7bda0f7cdfafed844fe06000f.tar.bz2 openbsd-bff9f9f3b2451cc7bda0f7cdfafed844fe06000f.zip |
allocate gsalt large enough; from Matthew R. Dempsky <mrd at alkemio
dot org>; ok djm@ deraadt@
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index cdc2dd05a6..3a09112b40 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bcrypt.c,v 1.20 2006/04/03 19:55:49 deraadt Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.21 2006/07/04 19:06:00 otto Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
@@ -73,7 +73,7 @@ static void encode_base64(u_int8_t *, u_int8_t *, u_int16_t); | |||
73 | static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *); | 73 | static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *); |
74 | 74 | ||
75 | static char encrypted[_PASSWORD_LEN]; | 75 | static char encrypted[_PASSWORD_LEN]; |
76 | static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; | 76 | static char gsalt[7 + (BCRYPT_MAXSALT * 4 + 2) / 3 + 1]; |
77 | static char error[] = ":"; | 77 | static char error[] = ":"; |
78 | 78 | ||
79 | const static u_int8_t Base64Code[] = | 79 | const static u_int8_t Base64Code[] = |