summaryrefslogtreecommitdiffstats
path: root/src/file_asf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-04-19 07:59:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-04-19 07:59:38 +0200
commit6079f96a35d2f43d1496c44000399c43664391fe (patch)
treee0e09c124373565eeb3066e30f6d5bac2c7aee88 /src/file_asf.c
parenteef1b4b104bccedaa7cf2694c54f20d3539f8f4e (diff)
PhotoRec: fix regression from commit 0f70bee69a6ce66c2b2798d09235439924906a0b
Diffstat (limited to 'src/file_asf.c')
-rw-r--r--src/file_asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_asf.c b/src/file_asf.c
index b3939e4..f7a0359 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)