[Mono-list] Mono.Unix.Native.Syscall.readlink memory corruption
Colin JN Breame
colin at breame.net
Mon Mar 13 12:32:54 EST 2006
Try this (replace path/to/link/file with a valid path):
using System.Text;
public class main_t {
public static void Main() {
for (int i=0; i<10000; i++) {
StringBuilder buf = new StringBuilder();
Mono.Unix.Native.Syscall.readlink("path/to/link/file", buf);
}
}
}
$ mcs -r:Mono.Posix main.cs && mono main.exe
*** glibc detected *** malloc(): memory corruption (fast): 0x0820b718 ***
Aborted
Can anyone confirm this?
-- Colin.
More information about the Mono-list
mailing list