]> git.saurik.com Git - backport.git/commitdiff
Add support for protecting against bug #10148349. v0.9.6
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Nov 2013 19:47:05 +0000 (11:47 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Nov 2013 19:47:05 +0000 (11:47 -0800)
src/com/saurik/backport/Hook.java

index 2c54395fbeebadfac85250c7e7464229491f1180..ae62a812af503c8c1522e104ba35cb32421ebe1d 100644 (file)
@@ -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);