[Sablevm-bugs] [ sablevm-Bugs-757425 ] bug in File.c
Brought to you by:
egagnon
From: SourceForge.net <no...@so...> - 2003-06-30 23:43:57
|
Bugs item #757425, was opened at 2003-06-19 14:42 Message generated for change (Comment added) made by davidbelanger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105523&aid=757425&group_id=5523 Category: Execution Problem Group: SablePath Status: Open Resolution: None Priority: 5 Submitted By: David Bélanger (davidbelanger) Assigned to: Nobody/Anonymous (nobody) Summary: bug in File.c Initial Comment: Function Java_java_io_File_listInternal is returning null when the directory is empty. The Java specification specifies that it should return an empty array. Note: I did not check if it was fixed in a more recent version of Classpath. Simply removing these lines should fix it: /* Did we find anything? */ if (i == 0) { free (filelist); return (0); } David ---------------------------------------------------------------------- >Comment By: David Bélanger (davidbelanger) Date: 2003-06-30 19:43 Message: Logged In: YES user_id=694080 There is also appears to be a memory leak as filelist is not freed on successful returns. I fixed both this bug and the memory leak in my developer branch: ..../belanger/sandbox/sablevm* David ---------------------------------------------------------------------- Comment By: David Bélanger (davidbelanger) Date: 2003-06-30 19:30 Message: Logged In: YES user_id=694080 There is also appears to be a memory leak as filelist is not freed on successful returns. I fixed both this bug and the memory leak in my developer branch: ..../belanger/sandbox/sablevm* David ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105523&aid=757425&group_id=5523 |