Obtained from: Martin Schulze <joey@infodrom.org>
Reviewed by: William Rowe, Sander Striker, David Reid
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@99659
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.28
+
+ *) Fix a pair of potential buffer overflows in htdigest
+ [Martin Schulze <joey@infodrom.org>, Thom May]
*) A newly created child now has a start_time of 0, to prevent
mod_status from displaying a bogus value for the "time to
fprintf(stderr, "Use -c option to create new one.\n");
exit(1);
}
- strcpy(user, argv[3]);
- strcpy(realm, argv[2]);
+ ap_cpystrn(user, argv[3], sizeof(user));
+ ap_cpystrn(realm, argv[2], sizeof(realm));
found = 0;
while (!(getline(line, MAX_STRING_LEN, f))) {