search for: mtime_low

Displaying 1 result from an estimated 1 matches for "mtime_low".

Did you mean: time_low
2011 Nov 11
0
[PATCH 9/9] Decompressors: check input size in unlzo.c
...size may have been used. + */ + if (in_len < HEADER_SIZE_MIN) + return 0; + /* read magic: 9 first bits */ for (l = 0; l < 9; l++) { if (*parse++ != lzop_magic[l]) @@ -88,6 +99,15 @@ static int INIT parse_header(u8 *input, else parse += 4; /* flags */ + /* + * At least mode, mtime_low, filename length, and checksum must + * be left to be parsed. If also mtime_high is present, it''s OK + * because the next input buffer check is after reading the + * filename length. + */ + if (end - parse < 8 + 1 + 4) + return 0; + /* skip mode and mtime_low */ parse += 8; i...