Commit graph

2334 commits

Author SHA1 Message Date
Christophe Grenier
c315a2a6a7 src/filegen.c: avoid recursive call in file_rename() and file_rename_unicode() 2019-10-12 16:58:38 +02:00
Christophe Grenier
e0e4d24cc9 file_doc.c: modify how is_db is incremented in ole_get_file_extension()
and file_rename_doc() to make it easier to understand for frama-c.
2019-10-12 15:43:35 +02:00
Christophe Grenier
bd98447c91 file_doc.c: modify the "for" loops in ole_get_file_extension() and file_check_doc_aux() 2019-10-12 12:52:54 +02:00
Christophe Grenier
6633316f9b file_doc.:c use a local variable uSectorShift instead of using le16(header->uSectorShift) 2019-10-12 11:50:35 +02:00
Christophe Grenier
f0866948e3 file_doc.c: new function OLE_read_block() 2019-10-12 11:41:36 +02:00
Christophe Grenier
646bf41c71 file_doc.c: move function file_check_doc_aux() inside the file 2019-10-12 11:19:09 +02:00
Christophe Grenier
fce8644459 PhotoRec: correct FileMakerPro 12 extension is fmp12, not fp12. 2019-10-04 08:47:04 +02:00
Christophe Grenier
b77be706eb PhotoRec: when parsing OLE/doc files, better detect Revit .rvt and image cache .db files 2019-09-28 10:36:28 +02:00
Christophe Grenier
da3483ce65 PhotoRec: stricter check for num_FAT_blocks when parsing doc files 2019-09-28 10:31:40 +02:00
Christophe Grenier
806a1f4bb5 PhotoRec: exe - rewrite the resource parser. 2019-09-26 20:38:23 +02:00
Christophe Grenier
0f09fa0121 PhotoRec: add frama-c tests for bmp 2019-09-21 10:13:53 +02:00
Christophe Grenier
5e48555814 PhotoRec: add frama-c tests for mp3 and id3 2019-09-21 10:08:14 +02:00
Christophe Grenier
153269e044 PhotoRec: set file_recovery_new->location.start before calling header_check() 2019-09-21 08:51:12 +02:00
Christophe Grenier
5eb2d5a054 PhotoRec: TIFF parser, fix previous commit and add various frama-c annotations 2019-09-07 09:01:55 +02:00
Christophe Grenier
8d1de543f4 PhotoRec: TIFF parser, use 0xffffffffffffffff via a constant instead of -1 as error value 2019-09-03 08:39:19 +02:00
Christophe Grenier
90932d8b4b TestDisk always lets you return to quick or deeper search results.
Since commit 6da2c2a5a5, it's possible to return to previous results when at least a partition was marked as primary or logical.
2019-09-03 08:32:04 +02:00
Christophe Grenier
b9fa9df756 PhotoRec: recover OpenEXR v2 .exr files 2019-08-27 07:55:59 +02:00
Christophe Grenier
0c60e30154 PhotoRec: avoid a potential out-of-bound read in jpg_check_structure() 2019-08-27 07:55:08 +02:00
Christophe Grenier
37dd4a8547 Add "BuildRequires: mingw64-qt5-qttools-tools" in mingw-testdisk.spec 2019-08-23 21:48:19 +02:00
Christophe Grenier
16e83f969c Update spec files for Fedora copr again 2019-08-23 16:51:40 +02:00
Christophe Grenier
45c138c319 Fix compilation on Debian kfreebsd-amd64 and kfreebsd-i386.
Thanks to Jean-Michel Kelbert, TestDisk's maintainer on Debian, for
integrating the patch.
2019-08-22 09:20:45 +02:00
Christophe Grenier
65eea944b6 PhotoRec: fix commit 94fa96ce3f 2019-08-21 15:40:43 +02:00
Christophe Grenier
54c7b91372 Update spec files for Fedora copr 2019-08-20 09:50:43 +02:00
Christophe Grenier
b4f93acdeb PhotoRec: Fix for multi-frames RAF files, only first frame was
recovered.
2019-08-20 07:37:10 +02:00
Christophe Grenier
69897f6c0f PhotoRec: sort custom signatures (minor fix)
A file starting by "abcde" was detected with extension "ext2" instead of
"ext1" with the folllowing custom signatures:
ext1 0 "abcde"
ext2 0 "abcd"
2019-08-11 16:02:24 +02:00
Christophe Grenier
06cbf2fe16 src/filegen.c: move the conditional check outside the loop in index_header_check_aux() 2019-08-11 16:00:55 +02:00
Christophe Grenier
20d96c6668 PhotoRec: add bound check while parsing ico files 2019-08-05 22:45:12 +02:00
Christophe Grenier
0a3650d64e PhotoRec: make header_check_ape() more frama-c WP friendly 2019-08-05 16:32:15 +02:00
Christophe Grenier
0ae3da4161 PhotoRec: avoid potential integer overflow while parsing exe files 2019-08-05 16:25:06 +02:00
Christophe Grenier
94fa96ce3f PhotoRec: recover more files using "#!/usr/bin/env" 2019-07-26 18:45:28 +02:00
Christophe Grenier
48bd41728e Minor improvement for a Fedora like testdisk.spec file 2019-07-26 18:44:08 +02:00
Christophe Grenier
3643a6c8a8 fix minor warning in search_part() about format string 2019-07-26 18:42:54 +02:00
Christophe Grenier
29c6791fa6 Merge latest translations from transifex
Close https://github.com/cgsecurity/testdisk/issues/67
2019-07-09 19:31:37 +02:00
Christophe Grenier
a3ee7c653d TestDisk & PhotoRec 7.2-WIP 2019-07-09 19:28:33 +02:00
Christophe Grenier
3bb714e653 TestDisk & PhotoRec 7.1 2019-07-07 17:25:03 +02:00
Christophe Grenier
ede2a1beb8 PhotoRec: recover Apple numbers/pages/... as .numbers instead of .zip 2019-05-22 10:38:01 +02:00
Christophe Grenier
bb856b42ad PhotoRec: recover Microsoft Event Log .evtx 2019-05-22 10:35:24 +02:00
Christophe Grenier
ecf71b8f77 configure.ac: compile using "-Wextra" if possible 2019-05-22 10:34:04 +02:00
Christophe Grenier
043ca2c6b6 remove two function headers from ntfs.h 2019-05-01 13:15:32 +02:00
Christophe Grenier
9223789872 PhotoRec: avoid to split x3f file due to x3i signature 2019-05-01 11:59:02 +02:00
Christophe Grenier
e6280ccd13 ask_location(): avoid a warning reported by clang 2019-05-01 11:58:22 +02:00
Christophe Grenier
b45cb7fb45 Avoid two logging prompts when using sudo.
Close https://github.com/cgsecurity/testdisk/issues/61
2019-04-29 19:22:57 +02:00
Christophe Grenier
bfe4aad16c Merge branch 'wesinator-patch-1' 2019-04-29 16:43:07 +02:00
Christophe Grenier
ce4e82ce35 Merge branch 'patch-1' of https://github.com/wesinator/testdisk into wesinator-patch-1 2019-04-29 16:41:50 +02:00
Christophe Grenier
7286aaec2e PhotoRec: reset offset_skipped_header when this offset belongs to a valid file. 2019-04-26 18:47:14 +02:00
Christophe Grenier
fd1fe33008 header_ignored_adv(): Always restore location in openned file 2019-04-26 18:44:05 +02:00
Christophe Grenier
a71b112d58 Add missing header in src/testdisk.c when compiling without ncurses 2019-04-26 18:42:49 +02:00
Christophe Grenier
372398f717 PhotoRec: recover Grasshopper archive .ghx file 2019-04-14 17:52:12 +02:00
Christophe Grenier
f0eb66c4ec Fixing NTFS MFT should be attempted only if both TestDisk and Windows failed to access the filesystem. 2019-04-14 17:49:30 +02:00
Christophe Grenier
45f7713904 Add Apple APFS and Extended Boot Partition 2019-04-14 17:47:56 +02:00