summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index 261be27..8c8ae08 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -1349,7 +1349,7 @@ static int jpg_check_dht(const unsigned char *buffer, const unsigned int buffer_
return 2;
j++;
for(l=0; l < 16; l++)
- if(j < buffer_size)
+ if(j+l < buffer_size)
sum+=buffer[j+l];
if(sum>255)
return 2;