Discovered that line 235 of PatternLayout.cpp is trying to stick a negative number into an unsigned value which turns into a huge # that it later tries to use. Attached patch fixes it I think but I'm not a c++ guru.
Environment
Red Hat Enterprise Linux AS release 3 (Taroon Update 9) g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59)
Attachments
1
28 Aug 2009, 04:07 PM
Activity
Scott Cantor
August 23, 2010 at 9:08 PM
Closing, this was patched in log4shib at some point.
Trying to build log4shib 1.0.3. Compiles fine but make test produces:
PASS: testNDC
% 1 cat1:2009-08-28 13:42:46,743 (1251484966 / 1) [ERROR] ndc1 message % (10000)
> message<
>message <
FAIL: testPattern
Discovered that line 235 of PatternLayout.cpp is trying to stick a negative number into an unsigned value which turns into a huge # that it later tries to use. Attached patch fixes it I think but I'm not a c++ guru.