This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch fix_oss_fuzz_reports
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit d0b3c185d126268ecb2a96ec9a8cd8471ce62fe3
Author: Stephen Webb <[email protected]>
AuthorDate: Tue Feb 4 09:44:56 2025 +1100

    Restrict pattern layout min/max field width specifiers to 3 digits
---
 src/main/include/log4cxx/patternlayout.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/include/log4cxx/patternlayout.h 
b/src/main/include/log4cxx/patternlayout.h
index c20242aa..7420266d 100644
--- a/src/main/include/log4cxx/patternlayout.h
+++ b/src/main/include/log4cxx/patternlayout.h
@@ -283,7 +283,7 @@ LOG4CXX_LIST_DEF(FormattingInfoList, 
LOG4CXX_NS::pattern::FormattingInfoPtr);
  * <p>
  *  The first optional format modifier is the <em>left justification flag</em> 
which is
  *  just the minus (-) character. Then comes the optional <em>minimum field 
width</em>
- *  modifier. This is a decimal constant that represents the minimum number of 
characters
+ *  modifier. This is a 1 to 3 decimal digit constant that represents the 
minimum number of characters
  *  to output. If the data item requires fewer characters, it is padded on 
either the left
  *  or the right until the minimum width is reached. The default is to pad on 
the left
  *  (right justify) but you can specify right padding with the left 
justification flag. The
@@ -293,7 +293,7 @@ LOG4CXX_LIST_DEF(FormattingInfoList, 
LOG4CXX_NS::pattern::FormattingInfoPtr);
  *
  * <p>
  *  This behavior can be changed using the <em>maximum field width</em> 
modifier which is
- *  designated by a period followed by a decimal constant. If the data item is 
longer than
+ *  designated by a period followed by a 1 to 3 decimal digit constant. If the 
data item is longer than
  *  the maximum field, then the extra characters are removed from the 
<em>beginning</em> of
  *  the data item and not from the end. For example, it the maximum field 
width is eight
  *  and the data item is ten characters long, then the first two characters of 
the data

Reply via email to