OxBat commented on code in PR #584:
URL: https://github.com/apache/logging-log4cxx/pull/584#discussion_r2741544382


##########
src/main/cpp/patternlayout.cpp:
##########
@@ -132,7 +132,8 @@ void PatternLayout::format(LogString& output,
                converterIter != m_priv->patternConverters.end();
                converterIter++, formatterIter++)
        {
-               int startField = (int)output.length();
+               // Fix integer truncation vulnerability (size_t to int cast)
+                size_t startField = output.length();

Review Comment:
   I've removed the comment and fixed the indentation



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