diff options
author | Stefan Fritsch <sf@apache.org> | 2009-10-18 20:39:05 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2009-10-18 20:39:05 +0000 |
commit | a9dbe0df7de95f196adc5963828c6b4fe1e20771 (patch) | |
tree | b31f57500edccdd1a6d11ea84dd5ff5eed2aad01 /support | |
parent | 7d8b3cdcda5c8f7579f70fee9798ed85e0e0499b (diff) | |
download | httpd-a9dbe0df7de95f196adc5963828c6b4fe1e20771.tar.gz |
Fix some more overflows spotted by Ruediger Pluem
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@826520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/htdigest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/htdigest.c b/support/htdigest.c index 8eff059687..d117b7aaec 100644 --- a/support/htdigest.c +++ b/support/htdigest.c @@ -124,7 +124,7 @@ static void add_password(const char *user, const char *realm, apr_file_t *f) char *pw; apr_md5_ctx_t context; unsigned char digest[16]; - char string[MAX_STRING_LEN]; + char string[3 * MAX_STRING_LEN]; char pwin[MAX_STRING_LEN]; char pwv[MAX_STRING_LEN]; unsigned int i; @@ -188,8 +188,8 @@ int main(int argc, const char * const argv[]) char *dirname; char user[MAX_STRING_LEN]; char realm[MAX_STRING_LEN]; - char line[MAX_STRING_LEN]; - char l[MAX_STRING_LEN]; + char line[3 * MAX_STRING_LEN]; + char l[3 * MAX_STRING_LEN]; char w[MAX_STRING_LEN]; char x[MAX_STRING_LEN]; int found; |