[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-distro-pkg-dev
Subject:    /hg/icedtea6: Fix rhbz#560193
From:       ahughes () redhat ! com (Dr Andrew John Hughes)
Date:       2010-08-27 19:23:07
Message-ID: 20100827192307.GB6429 () bree ! middle-earth ! co ! uk
[Download RAW message or body]

On 18:02 Fri 27 Aug     , dbhole at icedtea.classpath.org wrote:
> changeset ead30a628023 in /hg/icedtea6
> details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=ead30a628023
> author: Deepak Bhole <dbhole at redhat.com>
> date: Fri Aug 27 13:59:35 2010 -0400
> 
> 	Fix rhbz#560193
> 
> 	Process nested jars in applet code only if size > 0 bytes.
> 
> 
> diffstat:
> 
> 3 files changed, 15 insertions(+), 1 deletion(-)
> ChangeLog                                              |    7 +++++++
> netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java |    7 +++++++
> plugin/icedteanp/IcedTeaNPPlugin.cc                    |    2 +-
> 
> diffs (47 lines):
> 
> diff -r 627620efacc8 -r ead30a628023 ChangeLog
> --- a/ChangeLog	Thu Aug 26 11:03:17 2010 +0200
> +++ b/ChangeLog	Fri Aug 27 13:59:35 2010 -0400
> @@ -1,3 +1,10 @@ 2010-08-16  Pavel Tisnovsky  <ptisnovs at r
> +2010-08-27  Deepak Bhole <dbhole at redhat.com>
> +
> +	Fixes rhbz#560193
> +	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
> +	(activateJars): Process nested jar only if size > 0 bytes.
> +	* plugin/icedteanp/IcedTeaNPPlugin.cc: Fixed file name in header. 
> +
>  2010-08-16  Pavel Tisnovsky  <ptisnovs at redhat.com>
>  
>  	* Makefile.am:
> diff -r 627620efacc8 -r ead30a628023 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
> --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Aug 26 11:03:17 2010 +0200
> +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Fri Aug 27 13:59:35 2010 -0400
> @@ -638,13 +638,20 @@ public class JNLPClassLoader extends URL
>  
>                                      byte[] bytes = new byte[1024];
>                                      int read = is.read(bytes);
> +                                    int fileSize = read;
>                                      while (read > 0) {
>                                          extractedJar.write(bytes, 0, read);
>                                          read = is.read(bytes);
> +                                        fileSize += read;
>                                      }
>  
>                                      is.close();
>                                      extractedJar.close();
> +                                    
> +                                    // 0 byte file? skip
> +                                    if (fileSize <= 0) {
> +                                    	continue;
> +                                    }
>  
>                                      JarSigner signer = new JarSigner();
>                                      signer.verifyJar(extractedJarLocation);
> diff -r 627620efacc8 -r ead30a628023 plugin/icedteanp/IcedTeaNPPlugin.cc
> --- a/plugin/icedteanp/IcedTeaNPPlugin.cc	Thu Aug 26 11:03:17 2010 +0200
> +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc	Fri Aug 27 13:59:35 2010 -0400
> @@ -1,4 +1,4 @@
> -/* IcedTeaPlugin.cc -- web browser plugin to execute Java applets
> +/* IcedTeaNPPlugin.cc -- web browser plugin to execute Java applets
>     Copyright (C) 2003, 2004, 2006, 2007  Free Software Foundation, Inc.
>     Copyright (C) 2009, 2010 Red Hat
>  

This patch looks good, but please run patches past another developer before pushing
to release branches.  It's good to have a quick sanity check on stuff we're going to
be shipping to users.

Thanks,
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic