This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch prevent_fuzzer_timeouts
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/prevent_fuzzer_timeouts by
this push:
new 2f5a7519 Fix compilation errors
2f5a7519 is described below
commit 2f5a7519e8d033f4b0b1a472a3213d0a30932ef6
Author: Stephen Webb <[email protected]>
AuthorDate: Sun Aug 30 15:47:32 2026 +1000
Fix compilation errors
---
src/fuzzers/cpp/HTMLLayoutFuzzer.cpp | 2 +-
src/fuzzers/cpp/XMLLayoutFuzzer.cpp | 2 +-
src/main/include/log4cxx/rolling/multiprocessrollingfileappender.h | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/fuzzers/cpp/HTMLLayoutFuzzer.cpp
b/src/fuzzers/cpp/HTMLLayoutFuzzer.cpp
index 8e926dc6..b35f3829 100644
--- a/src/fuzzers/cpp/HTMLLayoutFuzzer.cpp
+++ b/src/fuzzers/cpp/HTMLLayoutFuzzer.cpp
@@ -71,7 +71,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data,
size_t size) {
std::string val4 = fdp.ConsumeRandomLengthString(MaxValueLength);
std::string ndcMessage = fdp.ConsumeRandomLengthString(MaxKeyLength);
std::string loggerStr = fdp.ConsumeRandomLengthString(MaxKeyLength);
- std::string contentStr =
fdp.ConsumeRemainingBytesAsString(MaxMessageLength);
+ std::string contentStr = fdp.ConsumeRemainingBytesAsString();
LogString key1, key2, val1, val2, logger, content;
diff --git a/src/fuzzers/cpp/XMLLayoutFuzzer.cpp
b/src/fuzzers/cpp/XMLLayoutFuzzer.cpp
index 4456bcab..e36595a9 100644
--- a/src/fuzzers/cpp/XMLLayoutFuzzer.cpp
+++ b/src/fuzzers/cpp/XMLLayoutFuzzer.cpp
@@ -52,7 +52,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data,
size_t size) {
std::string loggerString = fdp.ConsumeRandomLengthString(MaxKeyLength);
std::string propkey = fdp.ConsumeRandomLengthString(MaxKeyLength);
std::string propval = fdp.ConsumeRandomLengthString(MaxValueLength);
- std::string content =
fdp.ConsumeRemainingBytesAsString(MaxMessageLength);
+ std::string content = fdp.ConsumeRemainingBytesAsString();
log4cxx::LevelPtr level = log4cxx::Level::getInfo();
log4cxx::NDC::push(ndcMessage);
diff --git a/src/main/include/log4cxx/rolling/multiprocessrollingfileappender.h
b/src/main/include/log4cxx/rolling/multiprocessrollingfileappender.h
index f2d7291f..0955d087 100644
--- a/src/main/include/log4cxx/rolling/multiprocessrollingfileappender.h
+++ b/src/main/include/log4cxx/rolling/multiprocessrollingfileappender.h
@@ -51,6 +51,7 @@ class LOG4CXX_EXPORT MultiprocessRollingFileAppender : public
RollingFileAppende
public:
MultiprocessRollingFileAppender();
+ using RollingFileAppender::activateOptions;
/**
\copybrief FileAppender::activateOptions()