You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smallest possible gzip file size, according to the spec, is 18 bytes (10 byte header + 8 byte footer). Smallest I've been able to generate is 20 bytes (echo -n "" | gzip | hd). I'd make this check for 18 bytes at least. Technically you should also check the flags field and check for the extra fields too, but I think the 18 bytes check is a decent bugfix, since it would fix the line:
libvgm/utils/MemoryLoader.c
Line 57 in 7b694e5
Smallest possible gzip file size, according to the spec, is 18 bytes (10 byte header + 8 byte footer). Smallest I've been able to generate is 20 bytes (
echo -n "" | gzip | hd
). I'd make this check for 18 bytes at least. Technically you should also check the flags field and check for the extra fields too, but I think the 18 bytes check is a decent bugfix, since it would fix the line:if the file was smaller than 4 bytes.
The text was updated successfully, but these errors were encountered: