Offering:EulerOS Server CVE:CVE-2022-28614, CVE-2022-26377, CVE-2022-30522, CVE-2022-28615, CVE-2022-31813 Reference:8c14927162f7f15f3d8b65b8fb947b929c7156ce956f708b09Type:CVE DTS/AR:NA reason:fix CVE-2022-28614, CVE-2022-26377, CVE-2022-30522, CVE-2022-28615, CVE-2022-31813
35 lines
1002 B
Diff
35 lines
1002 B
Diff
From 6efaa3beb19566625b58bbe4510488a72574cd8e Mon Sep 17 00:00:00 2001
|
|
From: shirely <hanhui_0117@126.com>
|
|
Date: Tue, 21 Jun 2022 14:08:03 +0800
|
|
Subject: [PATCH 4/5] CVE-2022-28615
|
|
|
|
---
|
|
server/util.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/server/util.c b/server/util.c
|
|
index 853cb84..40b2fd4 100644
|
|
--- a/server/util.c
|
|
+++ b/server/util.c
|
|
@@ -185,7 +185,7 @@ AP_DECLARE(char *) ap_ht_time(apr_pool_t *p, apr_time_t t, const char *fmt,
|
|
*/
|
|
AP_DECLARE(int) ap_strcmp_match(const char *str, const char *expected)
|
|
{
|
|
- int x, y;
|
|
+ apr_size_t x, y;
|
|
|
|
for (x = 0, y = 0; expected[y]; ++y, ++x) {
|
|
if ((!str[x]) && (expected[y] != '*'))
|
|
@@ -209,7 +209,7 @@ AP_DECLARE(int) ap_strcmp_match(const char *str, const char *expected)
|
|
|
|
AP_DECLARE(int) ap_strcasecmp_match(const char *str, const char *expected)
|
|
{
|
|
- int x, y;
|
|
+ apr_size_t x, y;
|
|
|
|
for (x = 0, y = 0; expected[y]; ++y, ++x) {
|
|
if (!str[x] && expected[y] != '*')
|
|
--
|
|
1.8.3.1
|
|
|