omerbenamram / evtx

A Fast (and safe) parser for the Windows XML Event Log (EVTX) format
Apache License 2.0
652 stars 62 forks source link

Added a test with a sample containing empty chunks, and implement a fix #22

Closed ohadravid closed 5 years ago

ohadravid commented 5 years ago

According to #10, we had 5 missing records for 2-vss_7-System.evtx (1160 in evtxcmd, 1155 for us).

It seems like it's OK for chunks to be used non-linearly, so it's not enough to try and read past the last chunk. I implemented a simple fix which reads all chunks until the end of the file, only parsing non-empty chunks.