that aren't valid numbers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814337
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.3
+ *) mod_request: Make sure the KeptBodySize directive rejects values
+ that aren't valid numbers. [Graham Leggett]
+
*) mod_session_crypto: Sanity check should the potentially encrypted
session cookie be too short. [Graham Leggett]
const char *arg)
{
request_dir_conf *conf = dconf;
+ char *end = NULL;
- if (APR_SUCCESS != apr_strtoff(&(conf->keep_body), arg, NULL, 0)
- || conf->keep_body < 0) {
- return "KeptBodySize must be a size in bytes, or zero.";
+ if (APR_SUCCESS != apr_strtoff(&(conf->keep_body), arg, &end, 0)
+ || conf->keep_body < 0 || end) {
+ return "KeptBodySize must be a valid size in bytes, or zero.";
}
conf->keep_body_set = 1;