From 895c3d260675bc19ab6c8af21b4d18ad516848dd Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 11 Oct 2020 11:02:53 +0200 Subject: [PATCH] src/file_asf.c: header check was too strong and rejecting valid files. --- 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 0598f1ec..616fa825 100644 --- a/src/file_asf.c +++ b/src/file_asf.c @@ -81,7 +81,7 @@ static int header_check_asf(const unsigned char *buffer, const unsigned int buff uint64_t offset_prop=sizeof(struct asf_header_obj_s); /* Header + File Properties + Stream Properties + Header Extension */ if(le64(hdr->object_size)<30 || - le64(hdr->object_size)>buffer_size || + le64(hdr->object_size) >= PHOTOREC_MAX_FILE_SIZE || nbr_header_obj<4) return 0; for(i=0;