Skip to content

Commit

Permalink
source code of release 1.5.5 from 15/07/20221
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlaszczyk committed Jul 15, 2021
1 parent c8eae28 commit 8698e92
Show file tree
Hide file tree
Showing 26 changed files with 1,490 additions and 716 deletions.
37 changes: 0 additions & 37 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
/.DS_Store
/OpenSansEmoji.ttf
/closeDB_gray.png
/database-icon.png
/database-small-icon.png
/database-table-icon.html
/error-48.png
/exit3_gray.png
/export.png
/export_gray.png
/facewink.png
/find.png
/fqlite/
/fqlite_logo_256.png
/fqlite_logo_small.png
/helpcontent_gray.png
/hex-32.png
/icon-photo.png
/icon_checked.png
/icon_deleted.png
/icon_status.png
/icon_trash.png
/information-48.png
/journal-icon.png
/leaf.jpg
/openDB_gray.png
/picture.png
/question-48.png
/table-icon.png
/table-key-icon.png
/table_ico.png
/table_icon.png
/table_iconsmall.png
/testcase.txt
/testcorpus.txt
/trash-icon.png
/wal-icon.png
/warning-48.png
File renamed without changes.
7 changes: 6 additions & 1 deletion src/fqlite/base/Carver.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ public boolean carve(int fromidx, int toidx, SerialTypeMatcher mat, int headerty
mat.setMatchingMode(MatchingMode.NO1stCOL);
break;
}


if((toidx - fromidx) <= 4)
return match;

/* set search region */
mat.region(fromidx, toidx);

Expand All @@ -79,10 +83,11 @@ public boolean carve(int fromidx, int toidx, SerialTypeMatcher mat, int headerty

/* find every match within the given region */
while (mat.find()){

/* get the hex-presentation of the match */
String m = mat.group2Hex();
/* skip stupid matches - remember - it is just a heuristic */
if ((m.length() < 8) || (m.startsWith("00000000")))
if ((m.length() < 2) || (m.startsWith("00000000")))
continue;
//System.out.println("Breich: " + ((pagenumber - 1) * job.ps + fromidx) + " "
// + ((pagenumber - 1) * job.ps + toidx));
Expand Down
Loading

0 comments on commit 8698e92

Please sign in to comment.