[Remove entries to the current 2.0 section below, when backported]
+ *) ab: Overlong credentials given via command line no longer clobber
+ the buffer. [André Malo]
+
*) mod_rewrite: Ignore RewriteRules in .htaccess files if the directory
containing the .htaccess file is requested without a trailing slash.
PR 20195. [André Malo]
static void copyright(void)
{
if (!use_html) {
- printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.126 $> apache-2.0");
+ printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.127 $> apache-2.0");
printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n");
printf("\n");
}
else {
printf("<p>\n");
- printf(" This is ApacheBench, Version %s <i><%s></i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.126 $");
+ printf(" This is ApacheBench, Version %s <i><%s></i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.127 $");
printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n");
printf("</p>\n<p>\n");
*/
while (apr_isspace(*optarg))
optarg++;
+ if (apr_base64_encode_len(strlen(optarg)) > sizeof(tmp)) {
+ err("Authentication credentials too long\n");
+ }
l = apr_base64_encode(tmp, optarg, strlen(optarg));
tmp[l] = '\0';
*/
while (apr_isspace(*optarg))
optarg++;
+ if (apr_base64_encode_len(strlen(optarg)) > sizeof(tmp)) {
+ err("Proxy credentials too long\n");
+ }
l = apr_base64_encode(tmp, optarg, strlen(optarg));
tmp[l] = '\0';