You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "jmestwa-coder (via GitHub)" <gi...@apache.org> on 2026/05/08 18:37:55 UTC

[PR] Harden OptionConverter::toFileSize input validation [logging-log4cxx]

jmestwa-coder opened a new pull request, #654:
URL: https://github.com/apache/logging-log4cxx/pull/654

   ## Description
   
   * Harden `OptionConverter::toFileSize` to require full validation of size strings instead of accepting partially parsed values.
   * Reject malformed, negative, trailing-junk, and overflowed inputs such as:
   
     * `123abc`
     * `10XB`
     * `10MBjunk`
     * `-1MB`
   * Preserve documented valid formats including:
   
     * `10`
     * `10B`
     * `10 KB`
     * `10MB`
     * lowercase suffixes (`10kb`, `10mb`, `10gb`)
   * Add regression coverage for:
   
     * valid inputs
     * whitespace-separated suffixes
     * lowercase suffix handling
     * malformed input rejection
     * overflow and boundary handling


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Harden OptionConverter::toFileSize input validation [logging-log4cxx]

Posted by "swebb2066 (via GitHub)" <gi...@apache.org>.
swebb2066 merged PR #654:
URL: https://github.com/apache/logging-log4cxx/pull/654


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org