Skip to content

Commit 2cf762a

Browse files
committed
WIP Reduce advzip compression to -z3 (bug workaround)
As of GDB 13.1, gdb.exe contains static data that triggers a bug in x64 Windows zip integration as far back as Windows 7. After recompressing with "advzip -z4", extracting gdb.exe fails with "Unspecified error" 0x80004005. It happens with both 32-bit and 64-bit gdb.exe builds, and regardless of compiler flags, which is why I'm confident it's static data. No other zip program I've tried has trouble with this file. WIP NOTE: I thought it might not happen with -z3, but it still does. The committed "advzip.sample" contains the bad pattern.
1 parent 5b2e053 commit 2cf762a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

advzip.sample

176 KB
Binary file not shown.

multibuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ done
101101

102102
if [ $compact = yes ]; then
103103
printf "%s$suffix.zip\n" $builds \
104-
| xargs -I{} -P$(nproc) $dryrun advzip -z4 {}
104+
| xargs -I{} -P$(nproc) $dryrun advzip -z3 {}
105105
fi
106106

107107
cleanup

0 commit comments

Comments
 (0)