unzip fails to handle symlinks in large zip files
The Unzip package in Alpine fails to handle large zip files with symlinks. For example it fails to unzip the llvm 10.0 zip package from github https://github.com/llvm/llvm-project/archive/llvmorg-10.0.0.zip. You can find more information about this bug here: http://git.661346.n2.nabble.com/quot-git-archive-quot-seems-to-be-broken-wrt-zip-files-td6780039.html. It seems that this fix from Andreas Schwab is missing:
--- process.c
+++ process.c
@@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G) /* ret
= (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
#endif
+#ifdef SYMLINKS
+ /* Initialize the symlink flag, may be set by the platform-specific
+ mapattr function. */
+ G.pInfo->symlink = 0;
+#endif
+
return PK_COOL;
} /* end function process_cdir_file_hdr() */