Commit graph

2590 commits

Author SHA1 Message Date
Christophe Grenier
a48815d4f4 src/file_txt.c: remove some commented lines 2019-12-30 08:16:57 +01:00
Christophe Grenier
ea04bad2e5 src/file_txt.c: add a lot of frama-c annotations 2019-12-29 17:31:36 +01:00
Christophe Grenier
77850b8710 src/file_txt.c: code cleanup (work in progress) 2019-12-28 16:24:14 +01:00
Christophe Grenier
a4b19a6786 src/file_txt.c: use static variable for each extension 2019-12-28 12:29:55 +01:00
Christophe Grenier
16882c98ea date_dos2unix(): adapt a more recent and readable version from Linux kernel.
file_rsearch(): rewrite it
add frama-c annotations to various functions
2019-12-28 12:06:34 +01:00
Christophe Grenier
d00003e6e9 src/file_txt.c: reorder functions 2019-12-28 12:04:43 +01:00
Christophe Grenier
cce2697297 PhotoRec: src/file_pf.c - additional frama-c annotations for file_rename_pf() 2019-12-28 11:59:44 +01:00
Christophe Grenier
8fa5b43d03 PhotoRec: stricter check in src/file_pdf.c 2019-12-28 11:58:59 +01:00
Christophe Grenier
bb3993d045 PhotoRec: src/file_mov.c - fix bad check introduced in commit 91ba106b25 2019-12-28 11:57:51 +01:00
Christophe Grenier
26c361bac0 Drop "-wp-depth" from Makefile.am as it has been removed in frama-c 20.0
Update annotations for frama-c 20.0
2019-12-12 19:21:56 +01:00
Christophe Grenier
ac95883e22 "photorec /d recup_dir /cmd resume" can be used to resume a session
automatically. If no session is available, prompt the user.
See https://github.com/cgsecurity/testdisk/issues/73
2019-12-10 20:57:57 +01:00
Christophe Grenier
8a91bdfbfd Some code cleanup in file_rename() and file_rename_unicode()
Fix an OOB access.
2019-12-10 20:44:25 +01:00
Christophe Grenier
79f10a2497 PhotoRec: Ctrl-C should break from more locations (see 6f24cf45f6) 2019-12-10 20:42:59 +01:00
Christophe Grenier
6f24cf45f6 PhotoRec: When the first Ctrl-C/SIGINT, PhotoRec tries to emulate the Stop action in the interface.
The following signals flush the log file and the signals are propagated as it was done.
Close https://github.com/cgsecurity/testdisk/issues/73
2019-12-08 10:04:02 +01:00
Christophe Grenier
15eded4506 src/file_exe.c: disable log message by default (regression introduced by 806a1f4bb5) 2019-12-08 09:56:33 +01:00
Christophe Grenier
15d9b3d250 src/file_zip.c: additional frama-c annotations 2019-12-07 20:31:51 +01:00
Christophe Grenier
ded0ae6ed7 file_tiff*: additional frama-c annotations 2019-12-07 20:31:13 +01:00
Christophe Grenier
1f77cbec99 src/file_spe.c: check using frama-c 2019-12-07 20:30:40 +01:00
Christophe Grenier
410c20224c src/file_pf.c: additional frama-c annotation 2019-12-07 20:30:20 +01:00
Christophe Grenier
eb2a270bfa src/file_pdf.c: fix two wrong casting (regression) 2019-12-07 20:29:41 +01:00
Christophe Grenier
70089760f4 src/file_mp3.c: move some functions, additionnal frama-c annotations 2019-12-07 20:28:33 +01:00
Christophe Grenier
16c8c19ca9 src/file_jpg.c: check with frama-c more code 2019-12-07 20:27:03 +01:00
Christophe Grenier
f806b9ead0 src/file_gpg.c: additional frama-c annotations 2019-12-07 20:26:10 +01:00
Christophe Grenier
d9043ca42e src/file_exe.c: additional frama-c annotations 2019-12-07 20:25:43 +01:00
Christophe Grenier
1b2c9854cf src/file_doc.c: make more code frama-c friendly 2019-12-07 20:24:28 +01:00
Christophe Grenier
e632b44e34 src/file_bmp.c: additionnal frama-c annotations 2019-12-07 20:22:50 +01:00
Christophe Grenier
e5f0da2855 add frama-c annotations for td_memmem() and several list related
functions
2019-12-07 20:09:35 +01:00
Christophe Grenier
8d120ade61 PhotoRec: recover SafeHouse virtual disk .sdsk files 2019-12-03 19:09:10 +01:00
Christophe Grenier
b310abea46 src/file_jpg.c: make most code frama-c friendly, file_tiff* modified to help 2019-11-23 18:30:36 +01:00
Christophe Grenier
7e8f99aa92 src/file_tiff*.c: fix regression from commit a0fc92564e
Remove buggy IFD1 parsing from find_tag_from_tiff_header_be() and find_tag_from_tiff_header_le()
2019-11-23 08:55:31 +01:00
Christophe Grenier
a0fc92564e src/file_jpg.c: make code more frama-c friendly, file_tiff* modified to
help
2019-11-17 17:59:26 +01:00
Christophe Grenier
7f8425d839 New prototype for find_tag_from_tiff_header() 2019-11-16 17:30:27 +01:00
Christophe Grenier
e474cb0c6e New prototype for get_date_from_tiff_header() 2019-11-16 16:22:04 +01:00
Christophe Grenier
90efd3e667 src/file_doc.c: additional frama-c checks, minor patch for
ole_get_file_extension()
2019-11-16 09:36:00 +01:00
Christophe Grenier
8e0867ad23 fidentify: '-time' options to report the date/time in seconds from epoch of a file from its metadata 2019-11-16 09:27:43 +01:00
Christophe Grenier
b23da7a17c src/file_doc.c: make the code more frama-c friendly 2019-11-03 18:57:00 +01:00
Roy Duineveld
7c5aa1173b
Update file_txt.c 2019-11-02 09:54:08 +01:00
Roy Duineveld
1126be9c65
Support for Sequel Pro SQL dumps 2019-11-01 18:54:01 +01:00
Christophe Grenier
87ff1ddb86 Do not call utime() when using frama-c, fix some minor warnings. 2019-11-01 10:56:57 +01:00
Christophe Grenier
91ba106b25 src/file_mov.c: Fix all problems reported by "make frama-c-mov" 2019-11-01 10:47:23 +01:00
Christophe Grenier
990e81e4d9 file_tiff: make the code more frama-c friendly 2019-10-24 19:04:06 +02:00
Christophe Grenier
2b90bb8947 src/file_gpg.c: add frama-c annotations, fix boundaries check, no problems reported by "make frama-c-gpg" 2019-10-20 09:30:36 +02:00
Christophe Grenier
5600ce4ceb Fix the remaining problems reported by "make frama-c-exe" 2019-10-20 09:24:51 +02:00
Christophe Grenier
fe6759703c src/file_zip.c: remove useless test 2019-10-20 09:19:02 +02:00
Christophe Grenier
87db0e5911 Fix all problems reported by "make frama-c-zip" 2019-10-19 11:04:28 +02:00
Christophe Grenier
574c1938ae Fix the remaining problems reported by "make frama-c-pf" 2019-10-19 10:22:43 +02:00
Christophe Grenier
672e4ff620 Fix the remaining problems reported by "make frama-c-mp3" and "make frama-c-id3" 2019-10-19 10:21:07 +02:00
Christophe Grenier
4e5978cf5f Fix the remaining problems reported by "make frama-c-bmp" and "make frama-c-doc" 2019-10-19 10:17:42 +02:00
Christophe Grenier
a43423c2ba Make file_check_cmp() frama-c friendly
Disable file_rename() and file_rename_unicode_aux() when parsed by frama-c
2019-10-19 10:12:22 +02:00
Christophe Grenier
823fd45997 New prototype for date_dos2unix() 2019-10-19 10:11:55 +02:00