From 6079f96a35d2f43d1496c44000399c43664391fe Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 19 Apr 2013 07:59:38 +0200 Subject: [PATCH] PhotoRec: fix regression from commit 0f70bee69a6ce66c2b2798d09235439924906a0b --- src/file_asf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_asf.c b/src/file_asf.c index b3939e48..f7a03595 100644 --- a/src/file_asf.c +++ b/src/file_asf.c @@ -63,7 +63,7 @@ struct asf_file_prop_s { static int header_check_asf(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new) { const struct asf_header_obj_s *asf_header_obj=(const struct asf_header_obj_s *)buffer; - const struct asf_file_prop_s *asf_file_prop=(const struct asf_file_prop_s*)(buffer+le64(asf_header_obj->object_size)); + const struct asf_file_prop_s *asf_file_prop=(const struct asf_file_prop_s*)(asf_header_obj+1); unsigned int i; if(le64(asf_header_obj->object_size)<30 || le64(asf_header_obj->object_size)>buffer_size)