janstarke / mft2bodyfile

parses an $MFT file to bodyfile
GNU General Public License v3.0
7 stars 0 forks source link

Thread panick when parsing with USNJournal #4

Closed ker422 closed 1 year ago

ker422 commented 2 years ago

Hi,

I've been having an issue lately with many $MFT I tried to parse when parsing with USNJournal. Command line:

mft2bodyfile -O fs.test.body -J C.UsnJrnl.J C.MFT

In which:

Error:

[00:00:01] ######----------------------------------     79000/609536   (13%) parsing $MFT entries
[00:00:01] |                                            33000 parsing $UsnJrnl:$J entries
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `182598`,
[00:00:07] ########################################    609536/609536   (100%) parsing $MFT entries
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any { .. }', src/lib.rs:171:45

Version:

No error occurred when running without the USNJournal.

Any idea why would this happen ?

janstarke commented 1 year ago

This is a problem that occurs when usnjrnl reaches the end of $UsnJrnl:$J

janstarke commented 1 year ago

I think this should be fixed since v0.7.1. Could you please give it a try with your data?

ker422 commented 1 year ago

Hi,

I made several tests and I confirm that the issue is resolved.

Thanks.