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);