pre2: Fix crash in unpack (#2)

This commit is contained in:
scemino 2021-12-15 14:14:44 +01:00 committed by GitHub
parent 40ec27ef16
commit 4aa89bc91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ uint8_t *unpack(FILE *in, int *uncompressed_size) {
const uint16_t sig = fread_le16(in); const uint16_t sig = fread_le16(in);
fseek(in, 0, SEEK_SET); fseek(in, 0, SEEK_SET);
if (sig == 0x4CB4) { if (sig == 0x4CB4) {
memset(&uneat, 0, sizeof(unsqz)); memset(&uneat, 0, sizeof(uneat));
*uncompressed_size = unpack_eat(in, &uneat); *uncompressed_size = unpack_eat(in, &uneat);
return uneat.dst; return uneat.dst;
} else if ((sig >> 8) == 0x10) { } else if ((sig >> 8) == 0x10) {