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

   ### Summary
   
   This change fixes an iterator advancement issue in 
`Transcoder::decodeUTF8()` when processing the UTF-8 sequence `EF BF BF` 
(U+FFFF).
   
   ### Root Cause
   
   `Transcoder::decode()` uses `0xFFFF` as an internal error sentinel, but a 
successful decode of U+FFFF also returns `0xFFFF`.
   
   `decodeUTF8()` treated both cases identically and always advanced the 
iterator, causing the byte immediately following U+FFFF to be skipped.
   
   ### Fix
   
   Only advance the iterator when `decode()` did not consume any input.
   
   This preserves the existing error-recovery behavior while avoiding the extra 
iterator advance after a successfully decoded U+FFFF sequence.


-- 
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