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

   ## Summary
   
   Use `LogString::size_type` for `FormattingInfo` width arithmetic to avoid 
narrowing-sensitive offset calculations.
   
   ## Changes
   
   - Added a `LogString::size_type` overload for `FormattingInfo::format`
   - Kept the existing `int` overload as a compatibility wrapper
   - Replaced narrowing-sensitive `int` arithmetic with `size_type` arithmetic
   - Updated internal formatting call sites to pass native offset types directly
   - Added bounds handling for invalid `fieldStart` values
   - Added regression coverage for size-type formatting offsets
   
   ## Notes
   
   This keeps formatting calculations in the native size domain while 
preserving existing formatting behavior for normal inputs.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to