scalpel icon indicating copy to clipboard operation
scalpel copied to clipboard

PreviewMode option in library does not appear to be honored

Open atcuno opened this issue 11 years ago • 1 comments

I was testing using scalpel as a library and looked at libscalpel_test.cpp as a base. I wanted to use the library in preview mode (just get the resulting audit.txt), but can't seem to figure it out.

I first modified line 41 of libscalpel_test.cpp to be:

options.previewMode = TRUE;

instead of FALSE, but with this set the library still carves the files out to disk after pass 1.

I then modified libscalpel_carve_input to only call digimagefile by commenting out the block around the call to carveimagefile. This made the test program segfault.

Any help would be appreciated!

atcuno avatar Dec 17 '14 03:12 atcuno

Hey Andrew,

I don't think we did anything explicit to disable that feature as part of our changes to make the tool more library friendly and I'm not sure we used that feature. So, I don't know if the feature never worked or if we broke it accidentally. @vicodark may have a better idea about where that code lives.

brian

bcarrier avatar Jan 12 '15 15:01 bcarrier