Commit graph

3073 commits

Author SHA1 Message Date
Christophe Grenier
f13286f198 testdisk, photorec: report iconv usage 2023-02-19 09:11:47 +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
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
Christophe Grenier
07a5647f89 src/ext2p.c: remove useless memory allocation 2022-07-14 09:13:18 +02:00
Christophe Grenier
305d71ea0a Use "DISABLED_FOR_FRAMAC" to disable code to facilitate verification
using frama-c
2022-04-13 09:20:45 +02:00
Christophe Grenier
952415ee99 src/partmac.[ch]: Fix mac structure to avoid using pointers 2022-04-10 11:48:51 +02:00
Christophe Grenier
baefe2b3e4 Drop "--enable-ncmouse" option from configure script 2022-04-08 13:49:07 +02:00
Christophe Grenier
37286661af pdiskseln.c,phrecn.c,ppartseln.c: disable some code for Frama-C 2022-04-07 20:25:04 +02:00
Christophe Grenier
2b0a0fcde8 src/ntfs_io.c: fix ntfs_device_testdisk_io_ioctl() prototype for ntfs-3g 2022-04-06 07:43:45 +02:00
Christophe Grenier
e6c21a9bb4 Avoid field with a 0 size as Frama-C do not support them. 2022-04-06 07:42:41 +02:00
Christophe Grenier
37d1b8ce36 src/qmainrec.cpp: log "QPhotoRec exited normally" when QPhotoRec is
closed.
2022-04-05 13:40:22 +02:00
Christophe Grenier
a0ce30c162 src/qphotorec_locale.qrc: fix for f599c961a0 2022-04-05 13:39:02 +02:00
Christophe Grenier
f599c961a0 QPhotoRec: add Finnish translation from https://www.transifex.com/cgsecurity/testdisk/qphotorects/ 2022-03-26 12:03:31 +01:00
Christophe Grenier
1b8f211d4a PhotoRec recover
- fbx: Kaydara 3D file
- hdf: Hierarchical Data Format 5
- lz: lzip compressed file
2022-03-24 13:31:17 +01:00
Christophe Grenier
4d988b1c2f Stops if argc <= 0 2022-01-27 09:04:41 +01:00
Christophe Grenier
b2a0d41da6 Numerous frama-c annotations 2021-11-20 11:26:50 +01:00
Christophe Grenier
edcb650063 PhotoRec: recover dovecot encrypted files (Disable by default) 2021-11-20 10:56:57 +01:00
Christophe Grenier
72ed2f2b49 QPhotoRec: update translations, add Polish(pl) 2021-11-10 11:26:32 +01:00
Christophe Grenier
e8ebbf703d Replace "harddisk" by "hard disk" and replace "is is" by "is"
See https://github.com/cgsecurity/testdisk/issues/110
2021-11-10 09:04:17 +01:00
Christophe Grenier
945dccda01 QPhotoRec: add sv_SE and zh_CN translations - missing part 2021-11-05 14:47:54 +01:00
Christophe Grenier
d59dbf0087 QPhotoRec: add sv_SE and zh_CN translations 2021-11-03 20:49:54 +01:00
Christophe Grenier
f37c9e5ca6 src/file_doc.c: improve Frama-C annotations 2021-09-06 07:49:47 +02:00
Christophe Grenier
219bd3a3ae src/file_riff.h: improve Frama-C annotations 2021-09-04 18:44:35 +02:00
Christophe Grenier
5f1002487d src/file_nds.c: improve Frama-C annotations 2021-09-04 18:37:34 +02:00
Christophe Grenier
1f52c033e2 src/file_mpg.c: improve Frama-C annotations 2021-09-04 18:10:39 +02:00
Christophe Grenier
8a2edb7053 src/file_mp3.c: improve Frama-C annotations 2021-09-04 17:45:26 +02:00
Christophe Grenier
b394013916 src/file_mft.c: improve Frama-C annotations 2021-09-04 17:38:20 +02:00
Christophe Grenier
239a439bb9 src/intrfn.c: ask_confirmation() - clear the screen before closing it 2021-09-04 17:29:56 +02:00
Christophe Grenier
727984cc8f src/ext2_common.c: test_EXT2() - reduce code complexity 2021-09-04 17:28:48 +02:00