From: Jay Freeman (saurik) Date: Sun, 3 Nov 2013 19:47:05 +0000 (-0800) Subject: Add support for protecting against bug #10148349. X-Git-Tag: v0.9.6 X-Git-Url: https://git.saurik.com/backport.git/commitdiff_plain/04b93b54a495ed0e523861d2821b5af263668589 Add support for protecting against bug #10148349. --- diff --git a/src/com/saurik/backport/Hook.java b/src/com/saurik/backport/Hook.java index 2c54395..ae62a81 100644 --- a/src/com/saurik/backport/Hook.java +++ b/src/com/saurik/backport/Hook.java @@ -86,6 +86,9 @@ public class Hook { invoke(thiz, args); + if (thiz.getName().indexOf(0) != -1) + throw new ZipException("bug #10148349 [" + thiz.getName() + "]"); + DataInputStream in = new DataInputStream(new ByteArrayInputStream(header)); in.skip(8);