]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Follow up to 1892038, 1892063.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 10 Aug 2021 18:49:20 +0000 (18:49 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 10 Aug 2021 18:49:20 +0000 (18:49 +0000)
commit9226cbc6b92492615856b567ac7f7557f196634b
tree4b86ffdb5bf21daed0ea1130490416750d4a383c
parent30db75534d673f2d4ef9a104b3754e5ac2f0fd1d
Follow up to 18920381892063.

Improve fix to please a fuzzer which reports:
   util.c:2713:26: runtime error: signed integer overflow:
   9999999999999999 * 1000 cannot be represented in type 'long'

Compute the maximum limit for each case 's', 'h', 'ms' and 'mi' and make sure that the input is below this value.

While at it, move a comment to make things more consistent and use 'apr_time_from_msec() instead of hand writing it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892185 13f79535-47bb-0310-9956-ffa450edef68
server/util.c