bin/83347: [patch] improper handling of malloc failures within
libc's vfprintf
David Schultz
das at FreeBSD.ORG
Mon Dec 17 09:31:16 PST 2007
On Mon, Dec 17, 2007, Dan Lukes wrote:
> Bruce Evans napsal/wrote, On 12/17/07 17:49:
> >I prefer following the NULL pointer to aborting.
>
> Are you sure the *(NULL) raise exception on all platforms (at least
> on supported platforms) ?
Quite sure.
> The professional applications shall never failed by the uncontrolled
> way saying just "internal error" to user. It can be acceptable for
> gurus, but it's not so nice for casual users.
It could be refactored to return ENOMEM, which is arguably
better. But crashing in a complicated way isn't any better than
crashing in a simple way.
More information about the freebsd-bugs
mailing list