syslogparser icon indicating copy to clipboard operation
syslogparser copied to clipboard

add length check in parseTag()'s loop

Open datastream opened this issue 7 years ago • 4 comments

avoid out of index error

datastream avatar May 05 '17 05:05 datastream

Can you please provide a test case for this ?

I'll merge your PR afterwards.

Thanks :)

jeromer avatar May 09 '17 08:05 jeromer

it seems some log from log4j's syslog, trigger this bug.

<155>May 11 10:02:11 127.0.0.1 java.lang.NullPointerException

datastream avatar May 11 '17 02:05 datastream

Ok, but can you write a unit test for this bug ?

Thanks :)

jeromer avatar May 11 '17 04:05 jeromer

I updated the patch.

datastream avatar May 16 '17 10:05 datastream