mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
ap_size_parameter_parse() returned APR_ERANGE for a value without any digits where the libc sets EINVAL when nothing is converted (FreeBSD, musl), and APR_EINVAL with glibc. end == parameter tells portably that nothing was converted, so check it before the apr_strtoff() status. APR_EINVAL is for invalid syntax, APR_ERANGE stays for overflow and underflow. Use it for LimitXMLRequestBody too, which had its own apr_strtoff() parsing from #825, so that it reports the same errors as LimitRequestBody on every platform. No change in the accepted values. Extend test_012 to check that LimitRequestBody reports invalid syntax and range errors with their own messages, and to cover LimitXMLRequestBody. GitHub: closes #848 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939163 13f79535-47bb-0310-9956-ffa450edef68