Your message dated Fri, 28 Nov 2014 12:39:53 +0100
with message-id <[email protected]>
and subject line fixed
has caused the Debian Bug report #716950,
regarding icedtea-netx-common: heap size of 5m rejected
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
716950: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716950
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: icedtea-netx-common
Version: 1.3.2-1
Severity: normal
Tags: patch

Dear Maintainer,

javaws rejects jnlp files that contain 'initial-heap-size="5m"'.

# javaws a.jnlp
netx: Read Error: Could not read or parse the JNLP file. (Invalid value for 
heap size (5m) (For input string: ""))
#

I'd expect '5m' to be an acceptable value.


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information

Description: correct oboe in checkHeapSize
 substring returns a String that 'extends to the character at index 
 endIndex - 1', so increment indexOfLastDigit to get the correct substring
 
---

--- icedtea-web-1.3.2.orig/netx/net/sourceforge/jnlp/JREDesc.java
+++ icedtea-web-1.3.2/netx/net/sourceforge/jnlp/JREDesc.java
@@ -149,7 +149,7 @@ public class JREDesc {
             indexOfLastDigit = indexOfLastDigit - 1;
         }
 
-        String size = heapSize.substring(0, indexOfLastDigit);
+        String size = heapSize.substring(0, indexOfLastDigit + 1);
         try {
             // check that the number is a number!
             Integer.valueOf(size);

--- End Message ---
--- Begin Message ---
Version: 1.5.1-1

Apparently this is fixed upstream.

--- End Message ---

Reply via email to