summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-08-31 19:02:31 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-08-31 19:02:31 +0200
commitdb079c0e26853e58a6998054ccd6c2071aaec726 (patch)
tree671e96e9f1b6faa1b6697860b344e1a10a36ec4d /src/file_jpg.c
parentcf700c77551b30d9c62104adaf47ebbf26774fcc (diff)
PhotoRec: better date/time extraction for JPG file
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index 0290c19..5ea2d8f 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -1325,6 +1325,8 @@ static uint64_t jpg_check_structure(file_recovery_t *file_recovery, const unsign
const char *ifbytecount=NULL;
if(nbytes - (i+0x0A) < tiff_size)
tiff_size=nbytes - (i+0x0A);
+ if(file_recovery->time==0)
+ file_recovery->time=get_date_from_tiff_header(tiff, tiff_size);
thumb_data=find_tag_from_tiff_header(tiff, tiff_size, TIFFTAG_JPEGIFOFFSET, &potential_error);
if(thumb_data!=NULL)
{