#877852 minizip: filenames with two dots get garbled

Package:
minizip
Source:
minizip
Description:
compression library - minizip tools
Submitter:
Marc Lehmann
Date:
2017-10-06 07:21:04 UTC
Severity:
normal
#877852#5
Date:
2017-10-06 07:19:23 UTC
From:
To:
Dear Maintainer,

two dots in a filename cause miniunzip to remove everything in the path up to those two dots:

   $ mkdir testzip
   $ touch testzip/abc..def testzip/123..def
   $ zip -r testzip testzip
   $ rm -rf testzip
   $ miniunzip testzip
   MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant
   more info at http://www.winimage.com/zLibDll/unzip.html

   testzip.zip opened
   creating directory: testzip/
   extracting: def
   The file def exists. Overwrite ? [y]es, [n]o, [A]ll:

Instead of creating those two files in the testzip subdirectory, miniunzip
tries to create two files both called "def" in the current directory.