Bug#507089: infinite loop in File.canWrite()

Carsten Pfeiffer carsten.pfeiffer at alumni.tu-berlin.de
Thu Nov 27 21:52:51 UTC 2008


Package: classpath
Version: 2:0.97.2-1.1
Severity: important

We're using classpath with Jamvm(.sf.net) 1.5.0. When calling File.canWrite() 
on a File with a path longer than 38 characters, we get an infinite loop. 
strace shows that it's trying to stat() inexistant files in a loop.

I.e. try executing the following:

public static void main(String[] args) {
	File file = new File("/tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
	file.mkdirs();
	file.canWrite();
}

Cheers,
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 447 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20081127/e4a13e6f/attachment.pgp 


More information about the pkg-java-maintainers mailing list