You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "metsw24-max (via GitHub)" <gi...@apache.org> on 2026/05/12 05:56:44 UTC

[PR] Replace manual exception message buffers with std::string [logging-log4cxx]

metsw24-max opened a new pull request, #661:
URL: https://github.com/apache/logging-log4cxx/pull/661

   This change replaces fixed-size exception message buffers with std::string-backed storage throughout the exception hierarchy.
   
   The previous implementation relied on manual buffer management and multiple bounded string/memory copy routines, including memcpy, strncpy, and strcpy variants, along with explicit truncation and null-termination handling.
   
   By migrating exception message storage to std::string, this patch:
   
   - removes manual buffer lifetime management
   - eliminates fixed-capacity truncation logic
   - removes unsafe/error-prone string copy patterns
   - improves memory-safety and code auditability
   - aligns exception handling with modern RAII-based C++ practices
   


-- 
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] Replace manual exception message buffers with std::string [logging-log4cxx]

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


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