commit b715c7d: [Minor] Gzip archives are always deflate

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 13 14:49:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-13 15:43:33 +0100
URL: https://github.com/rspamd/rspamd/commit/b715c7d3ad0cf8d898c4a0246d531c2f43ea6aff (HEAD -> master)

[Minor] Gzip archives are always deflate

---
 src/libmime/archives.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmime/archives.c b/src/libmime/archives.c
index 12fa15276..595ca8711 100644
--- a/src/libmime/archives.c
+++ b/src/libmime/archives.c
@@ -1921,7 +1921,7 @@ rspamd_archives_process (struct rspamd_task *task)
 	const guchar rar_magic[] = {0x52, 0x61, 0x72, 0x21, 0x1A, 0x07};
 	const guchar zip_magic[] = {0x50, 0x4b, 0x03, 0x04};
 	const guchar sz_magic[] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};
-	const guchar gz_magic[] = {0x1F, 0x8B};
+	const guchar gz_magic[] = {0x1F, 0x8B, 0x08};
 
 	PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, parts), i, part) {
 		if (part->part_type == RSPAMD_MIME_PART_UNDEFINED) {


More information about the Commits mailing list