[Mono-bugs] [Bug 82678][Maj] Changed - Mono_Posix_Syscall_readdir_r causes stack corruption in readdir_r, resulting in crash

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 4 09:24:37 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jonpryor at vt.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=82678

--- shadow/82678	2007-09-04 09:14:56.000000000 -0400
+++ shadow/82678.tmp.16923	2007-09-04 09:24:37.000000000 -0400
@@ -213,6 +213,11 @@
 ------- Additional Comments From lupus at ximian.com  2007-09-04 09:14 -------
 I think you should malloc() the proper length sizeof(dirent) +
 MAX(PATH_MAX, NAME_MAX) + 1, which is what the documentation for the
 function actually says is needed. Retarded systems like hurd that
 don't follow the interface are not our problem. For the alignment
 issue you should use a union, like the documentation suggests.
+
+------- Additional Comments From jonpryor at vt.edu  2007-09-04 09:24 -------
+Is there a platform for which PATH_MAX isn't defined?
+
+(i.e. why have the `#ifndef PATH_MAX' block?)


More information about the mono-bugs mailing list