From b0920733110d174630f2985459ca86b149bc5150 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 23 Sep 2024 03:18:11 +0200 Subject: [PATCH] Fixed StackOverflowError case in AccessLog regex. --- .../httpaccess/HttpAccessLogParser.java | 2 +- .../httpaccess/HttpAccessLogParserTest.java | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/httpaccess/HttpAccessLogParser.java b/src/fr/devinsy/statoolinfos/metrics/httpaccess/HttpAccessLogParser.java index e5b0de4..b9aea12 100644 --- a/src/fr/devinsy/statoolinfos/metrics/httpaccess/HttpAccessLogParser.java +++ b/src/fr/devinsy/statoolinfos/metrics/httpaccess/HttpAccessLogParser.java @@ -34,7 +34,7 @@ public class HttpAccessLogParser // '"$request" $status $body_bytes_sent ' // '"$http_referer" "$http_user_agent"'; public static final Pattern COMBINED_PATTERN = Pattern.compile( - "^(?[a-fA-F0-9\\:\\.]+) - (?[^\\[]+) \\[(?