summaryrefslogtreecommitdiffstats
path: root/src/file_riff.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-02 08:06:38 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-02 08:06:38 +0100
commit8469f754c730ebe6e09cfe7ec9910d92e242a566 (patch)
treeae3ce48b336b17f0f5efc8188d8ae15292a50f27 /src/file_riff.c
parentb24ea8407a949eaa4cd8b64ad8338ace47a0abcc (diff)
file_riff.c: Fix regression introduced in #bd92f8847e15aadfe676e7e56e3f934547dd762b
Diffstat (limited to 'src/file_riff.c')
-rw-r--r--src/file_riff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file_riff.c b/src/file_riff.c
index ccb2c61..4217290 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -222,7 +222,9 @@ static int header_check_riff(const unsigned char *buffer, const unsigned int buf
{
/* Cubase Project File */
file_recovery_new->extension="cpr";
- file_recovery_new->calculated_file_size+=4;
+ file_recovery_new->calculated_file_size=(((uint64_t)buffer[4])<<24) +
+ (((uint64_t)buffer[5])<<16) + (((uint64_t)buffer[6])<<8) +
+ (uint64_t)buffer[7] + 12;
return 1;
}
if(memcmp(&buffer[8],"AVI ",4)==0)