From 25de35faec2430c4cd2be9f8294ac319b5cbe602 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 7 Mar 2019 14:37:56 +0100 Subject: [PATCH] Remove check that path of file added to archive contains ':' or '\' --- miniz_zip.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/miniz_zip.c b/miniz_zip.c index 24867d7..b5832ce 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -3101,13 +3101,7 @@ static mz_bool mz_zip_writer_validate_archive_name(const char *pArchive_name) if (*pArchive_name == '/') return MZ_FALSE; - while (*pArchive_name) - { - if ((*pArchive_name == '\\') || (*pArchive_name == ':')) - return MZ_FALSE; - - pArchive_name++; - } + /* Making sure the name does not contain drive letters or DOS style backward slashes is the responsibility of the program using miniz*/ return MZ_TRUE; }