summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2022-04-27 06:35:02 +0000
committerRuediger Pluem <rpluem@apache.org>2022-04-27 06:35:02 +0000
commite2e1d779179d1c9a053e61fa4a3776a5faf7d653 (patch)
treea1a14c1b3b62a75a3d4f4716f5b1e100d28a597b /server
parent63840edb440a2caaea46091afbc92a0ed72e7b5e (diff)
downloadhttpd-e2e1d779179d1c9a053e61fa4a3776a5faf7d653.tar.gz
* Avoid an overflow on large inputs
PR: 66033 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/util.c b/server/util.c
index c49274d656..c57258aeb3 100644
--- a/server/util.c
+++ b/server/util.c
@@ -251,10 +251,8 @@ AP_DECLARE(int) ap_os_is_path_absolute(apr_pool_t *p, const char *dir)
AP_DECLARE(int) ap_is_matchexp(const char *str)
{
- int x;
-
- for (x = 0; str[x]; x++)
- if ((str[x] == '*') || (str[x] == '?'))
+ for (; *str; str++)
+ if ((*str == '*') || (*str == '?'))
return 1;
return 0;
}