OSDN Git Service

JarFile was not able to verify signed files with size 0.
authorUrs Grob <ursg@google.com>
Mon, 7 Sep 2009 14:34:47 +0000 (16:34 +0200)
committerUrs Grob <ursg@google.com>
Mon, 7 Sep 2009 15:53:25 +0000 (17:53 +0200)
commit4949c14402562af123745d59020cd4fc5eb565cb
tree08106ba6636100c11328dff6e8ef6767a5054b12
parent7f5e6aa1503d13300c277225bf4eea9e5a11495a
JarFile was not able to verify signed files with size 0.

This regressen was introduced by harmony optimizations done in HARMONY-4569.
This fix allows for jar entries of size 0 to also get successfully validated.
A regression test has been added to JarFileTest.
libcore/archive/src/main/java/java/util/jar/JarFile.java
libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/JarFileTest.java
libcore/support/src/test/java/tests/resources/EmptyEntries_signed.jar [new file with mode: 0644]