java/61392: javaws from jdk-1.4.2p6 SEGV on startup
Greg Lewis
glewis at eyesbeyond.com
Fri Jan 16 16:00:50 PST 2004
The following reply was made to PR java/61392; it has been noted by GNATS.
From: Greg Lewis <glewis at eyesbeyond.com>
To: Matthew Seaman <m.seaman at infracaninophile.co.uk>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: java/61392: javaws from jdk-1.4.2p6 SEGV on startup
Date: Fri, 16 Jan 2004 17:00:44 -0700
--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Thu, Jan 15, 2004 at 09:16:36PM +0000, Matthew Seaman wrote:
> The Java WebStart application javaws from JDK 1.4.2p6 dies repeatably
> almost immediately on startup with a segmentation violation:
Try the attached patch, I'm testing it now, but it will take a few hours.
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-native::util.c"
$FreeBSD$
--- ../../deploy/src/javaws/src/share/native/util.c 22 Oct 2003 23:04:17 -0000 1.1.1.1
+++ ../../deploy/src/javaws/src/share/native/util.c 16 Jan 2004 23:50:11 -0000
@@ -27,7 +27,10 @@
/* Find size of file */
struct stat statBuf;
- stat(filename, &statBuf);
+ if (stat(filename, &statBuf) == -1) {
+ *buffer = NULL;
+ return 0;
+ }
size = statBuf.st_size;
/* Allocate memory for contents */
--0OAP2g/MAC+5xKAE--
More information about the freebsd-java
mailing list