[Openais] RE: Library core dump using evt.
Mark Haverkamp
markh at osdl.org
Tue Jan 10 07:23:44 PST 2006
On Mon, 2006-01-09 at 22:00 -0700, Steven Dake wrote:
[...]
>
> Mark,
> In an OOM, I think the following line would cause some problems:
>
> hl = malloc(sizeof(*hl));
> edi->edi_hl = hl;
> hl->hl_handle = *eventHandle;
>
> no check for zero return from malloc.
Yes, I try to remember to do that everywhere. Sometimes when I am
coding away I forget a check :-)
Thanks, I'll fix that and check all the other malloc calls too.
Mark.
--
Mark Haverkamp <markh at osdl.org>
More information about the Openais
mailing list