Skip to content

Commit

Permalink
A 'fix' to satisfy pednatic debian fuzzers. This one read ONE byte pa…
Browse files Browse the repository at this point in the history
…st allocated.
  • Loading branch information
Matthias-Wandel committed Oct 23, 2020
1 parent e64e904 commit 4827ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpgfile.c
Expand Up @@ -48,7 +48,7 @@ static void process_COM (const uchar * Data, int length)
for (a=2;a<length;a++){
ch = Data[a];

if (ch == '\r' && Data[a+1] == '\n') continue; // Remove cr followed by lf.
if (ch == '\r' && a < length-1 && Data[a+1] == '\n') continue; // Remove cr followed by lf.

if (ch >= 32 || ch == '\n' || ch == '\t'){
Comment[nch++] = (char)ch;
Expand Down

0 comments on commit 4827ed3

Please sign in to comment.