summaryrefslogtreecommitdiffstats
path: root/src/file_mpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-02-26 10:08:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-02-26 10:08:48 +0100
commit8fd273959816b12b60a1093e1037bc2a6a26d3d2 (patch)
tree536efbbf90cc0d66e8bbf081db91bcf605fd440b /src/file_mpg.c
parentd13e22df20f5111548e1438a6e832b42a2283182 (diff)
PhotoRec: fix potential endless loop/crash when parsing abr files,
use uint64_t when parsing exe, gpg, hdf, indd files fix calculate_packet_size() prototype
Diffstat (limited to 'src/file_mpg.c')
-rw-r--r--src/file_mpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_mpg.c b/src/file_mpg.c
index c0ca71b..03b61d3 100644
--- a/src/file_mpg.c
+++ b/src/file_mpg.c
@@ -42,7 +42,7 @@ const file_hint_t file_hint_mpg= {
.register_header_check=&register_header_check_mpg
};
-static int calculate_packet_size(const unsigned char *buffer)
+static unsigned int calculate_packet_size(const unsigned char *buffer)
{
/* http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html */
if(buffer[0]!=0 || buffer[1]!=0 || buffer[2]!=1)