Skip to content
Snippets Groups Projects
Commit f3e461bc authored by rswindell's avatar rswindell
Browse files

Increase the "invalid length" of a hashed data record from 1MB to 1GB.

Apparently some USENET articles are >= 1MB these days. Thanks Coz.
parent 0b469a5e
No related branches found
No related tags found
No related merge requests found
......@@ -899,7 +899,7 @@ int main(int argc, char **argv)
fprintf(stderr,"\r%sInvalid message number (%u > %u)\n", beep, hash.number, smb.status.last_msg), badhash++, print_hash(&hash);
else if(hash.time < 0x40000000 || hash.time > (ulong)now + (60 * 60))
fprintf(stderr,"\r%sInvalid time (0x%08"PRIX32")\n", beep, hash.time), badhash++, print_hash(&hash);
else if(hash.length < 1 || hash.length > 1024*1024)
else if(hash.length < 1 || hash.length > 1024*1024*1024)
fprintf(stderr,"\r%sInvalid length (%"PRIu32")\n", beep, hash.length), badhash++, print_hash(&hash);
else if(hash.source >= SMB_HASH_SOURCE_TYPES)
fprintf(stderr,"\r%sInvalid source type (%u)\n", beep, hash.source), badhash++, print_hash(&hash);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment