Try to open ZIP files

Let's just give a try to opening ZIP files. Especially since we have one
of them in the test dives directory.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-06-30 09:10:40 +03:00 committed by Dirk Hohndel
parent 9602bd616a
commit 140d2e4165

4
file.c
View File

@ -233,6 +233,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
if (!strcasecmp(fmt, "DLD"))
return try_to_open_zip(filename, mem, error);
/* Give a shot for plain ZIP */
if (!strcasecmp(fmt, "ZIP"))
return try_to_open_zip(filename, mem, error);
#if ONCE_COCHRAN_IS_SUPPORTED
/* Truly nasty intentionally obfuscated Cochran Anal software */
if (!strcasecmp(fmt, "CAN"))