To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=65004
------- Additional comments from [EMAIL PROTECTED] Tue May 2 13:09:35 -0700
2006 -------
Tino: one wrong point in your idea, and this is why it fails on Mac OS X:
macmini:/tmp oo$ cat /tmp/q.c; gcc q.c; ./a.out
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main () {
printf(malloc(SIZE_MAX));
return 0;
}
Bus error
macmini:/tmp oo$
GNU/Linux:
[EMAIL PROTECTED]:/tmp> cat /tmp/q.c; gcc q.c; ./a.out
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
int main () {
printf(malloc(SIZE_MAX));
return 0;
}
[EMAIL PROTECTED]:/tmp>
So the error on Mac OS X is not returned NULL from malloc, but Bus error.
Man page says:
The malloc() function allocates size bytes of memory and returns a
pointer to the allocated memory. malloc() returns a NULL pointer if
there is an error.
Looks like our expectations about standard unix like system (about Mac OS X) are
not that valid ;-)
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]