rm5248 commented on code in PR #593:
URL: https://github.com/apache/logging-log4cxx/pull/593#discussion_r2795883200
##########
src/main/cpp/formattinginfo.cpp:
##########
@@ -79,7 +79,9 @@ FormattingInfoPtr FormattingInfo::getDefault()
*/
void FormattingInfo::format(const int fieldStart, LogString& buffer) const
{
- int rawLength = int(buffer.length() - fieldStart);
+ if (INT_MAX < buffer.length())
Review Comment:
isn't this always going to be true? or am I misreading it?
--
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]