Commit graph

3280 commits

Author SHA1 Message Date
Christophe Grenier
4e66719d45 src/file_tiff_be.c, src/file_tiff_le.c: Frama-C - use static buffer to avoid
calling MALLOC()
2023-10-08 14:18:15 +02:00
Christophe Grenier
cb58fe3a0e src/file_exe.c: improve Frama-C annotations 2023-10-08 14:16:18 +02:00
Christophe Grenier
c966ee4baa src/file_doc.h: add annotations for file_check_doc_aux() 2023-10-08 14:14:51 +02:00
Christophe Grenier
d90b4571d7 src/fat_common.c, src/fat_dir.c: more Frama-C annotations 2023-10-08 14:13:56 +02:00
Christophe Grenier
bd0b82c437 src/ext2_common.c: more Frama-C annotations 2023-10-08 14:13:17 +02:00
Christophe Grenier
9c37fccbd3 src/apfs_common.c: fix Frama-C annotations for fletcher64() 2023-10-08 14:11:47 +02:00
Christophe Grenier
0fdbc68915 src/filegen.c: improve Frama-C annotations 2023-10-08 14:00:23 +02:00
Christophe Grenier
b05dfc200b src/adv.c: add Frama-C annotation for interface_adv() 2023-10-08 13:57:07 +02:00
Christophe Grenier
28e29554f7 src/crc.c: fix Frama-C annotations for get_crc32 2023-10-08 13:56:32 +02:00
Christophe Grenier
d29facb0d7 src/log.c: add Frama-C annotations for dump_log() and dump2_log() 2023-10-08 13:55:39 +02:00
Christophe Grenier
0c9784cb76 Split src/list.h in 3 2023-09-02 10:17:38 +02:00
Christophe Grenier
14210bd402 src/file_zip.c: improve Frama-C annotations 2023-09-01 07:58:38 +02:00
Christophe Grenier
2457531d2b src/file_doc.c: improve Frama-C annotations 2023-08-31 13:55:08 +02:00
Christophe Grenier
d2d79fe429 src/common.c: rewrite set_part_name(), set_part_name_chomp() and
date_dos2unix() to fix Frama-C warnings
2023-08-25 16:45:59 +02:00
Christophe Grenier
5870c3c967 src/hdaccess.c: use /sys/dev/block/*/device/{model,serial,rev} to get
information about disks
2023-08-25 16:40:27 +02:00
Christophe Grenier
da2ed0b7aa src/file_mov.c: recover "XAVC" videos 2023-08-25 11:45:44 +02:00
Christophe Grenier
979489eff6 new prototype for copy_file(), improve error reporting 2023-08-25 11:43:50 +02:00
Christophe Grenier
a8b22a5eed src/fat_adv.c: move up2power() from src/common.c 2023-08-25 11:39:22 +02:00
Christophe Grenier
cd8d1a00d3 src/exfat_dir.c: Better utf-8 support when iconv is missing 2023-06-18 18:01:20 +02:00
Christophe Grenier
9997b601c2 fidentify: report if iconv is used 2023-02-19 09:45:36 +01:00
Christophe Grenier
972217f993 configure.ac: fidentify doesn't use com_err ext2fs ntfs-3g ntfs uuid libaries 2023-02-19 09:42:41 +01:00
Christophe Grenier
6e7da4929b qphotorec: improve error message when write failed 2023-02-19 09:16:30 +01:00
Christophe Grenier
5ddaee9a47 Commit various Frama-C annotations 2023-02-19 09:15:52 +01:00
Christophe Grenier
97f7083ba8 src/apfs_common.c: avoid integer overflow when checking block count. 2023-02-19 09:14:47 +01:00
Christophe Grenier
f13286f198 testdisk, photorec: report iconv usage 2023-02-19 09:11:47 +01:00
Christophe Grenier
593d540676 Merge branch 'gszy_shapefile' to add support for .shp (ESRI Shapefiles) 2023-02-03 15:36:29 +01:00
Christophe Grenier
ca8e5cab23 src/file_shp.c: fix filesize detection.
Add some frama-c annotations
2023-02-03 15:34:55 +01:00
Grzegorz Szymaszek
0151442354 Add basic shapefile (.shp, .shx) support
The shapefile support includes recognition of the magic 0x0000270a and
parsing the file length. The source code is based on the template file
and file_bmp.c.

The shapefile format is described at [1], the article links to other
resources, like the Technical Description[2].

[1]: https://en.wikipedia.org/wiki/Shapefile
[2]: https://www.esri.com/content/dam/esrisites/sitecore-archive/Files/Pdfs/library/whitepapers/pdfs/shapefile.pdf
2023-02-01 22:29:22 +01:00
Christophe Grenier
900207eb4e testdisk and photorec: display disk serial number when selecting source
disk
2023-01-23 21:07:02 +01:00
Christophe Grenier
00f5cff7ca update to 2023 2023-01-23 21:05:27 +01:00
Christophe Grenier
f8b86d4f66 PhotoRec: recover FX Preset .fxp files 2022-11-16 07:49:40 +01:00
Christophe Grenier
1c09ffcb6f new constant SINGLE_PARTITION_TYPE to improve code testing 2022-11-16 07:45:33 +01:00
Christophe Grenier
1c05a14387 src/file_gz.c: compilation fix when zlib is present and SINGLE_FORMAT
enabled.
2022-11-16 07:40:25 +01:00
Christophe Grenier
931421d4df configure.ac: update to November 2022
compile.sh: switch tuxera.com to https
2022-11-16 07:37:42 +01:00
Christophe Grenier
548a12d704 Replace "Select a media (use Arrow keys, then press Enter):" message by
"Select a media and choose 'Proceed' using arrow keys:"
2022-11-16 07:33:02 +01:00
Christophe Grenier
d4df329408 PhotoRec: distinguish Mathcad .mtcx files from .zip 2022-11-16 07:32:21 +01:00
Christophe Grenier
5924496e28 src/dirn.c: new function can_copy_dir() 2022-11-16 07:30:24 +01:00
Christophe Grenier
7a767a3917 Fix for 2038 compatibility 2022-09-10 10:07:50 +02:00
Christophe Grenier
0ae7969c12 src/file_ext.c: fix Array-bounds issue
See bug report: https://github.com/cgsecurity/testdisk/issues/104
Thanks to Daniil Frolov for reporting the problem.
2022-08-11 16:03:41 +02:00
Christophe Grenier
97f517280d PhotoRec: recover PowerArchiver .pa files 2022-07-14 10:17:59 +02:00
Christophe Grenier
ab631fbeff src/file_list.c: reduce number of external definition when SINGLE_FORMAT
is used
2022-07-14 10:13:37 +02:00
Christophe Grenier
4e44db2b46 Improve Frama-C annotations 2022-07-14 10:09:09 +02:00
Christophe Grenier
beaac3153e Update to July 2022 2022-07-14 10:02:36 +02:00
Christophe Grenier
3152a49873 src/file_ptf.c: relax Pro Tools ptf file signature 2022-07-14 09:56:49 +02:00
Christophe Grenier
c83e2b5d31 src/ntfs_adv.c: fix mft_lcn display by casting to "long long unsigned int" 2022-07-14 09:48:41 +02:00
Christophe Grenier
d818cc71ba src/file_exe.c: remove some useless code 2022-07-14 09:43:00 +02:00
Christophe Grenier
e9503f31f6 src/chgtype.c: remove redundant check 2022-07-14 09:32:18 +02:00
Christophe Grenier
0162c86872 src/file_skp.c: remove filesize limit 2022-07-14 09:29:51 +02:00
Christophe Grenier
2260302f98 src/file_sp3.c: rename variable time to file_time to avoid to shadow
time() function
2022-07-14 09:24:27 +02:00
Christophe Grenier
94a14b3585 src/hdaccess.c: make disk_get_sector_size variable local 2022-07-14 09:23:29 +02:00