Re: [PATCH] Check MGAAllocAdaptor() for memory allocation failure

2011-12-29 Thread Mark Kettenis
From: Alan Coopersmith alan.coopersm...@oracle.com Date: Wed, 28 Dec 2011 19:51:04 -0800 If it couldn't allocate memory, don't attempt to write a bunch of values to the NULL pointer before returning it, but just pass the NULL along right away. Resolves parfait warnings of the form:

[PATCH] Check MGAAllocAdaptor() for memory allocation failure

2011-12-28 Thread Alan Coopersmith
If it couldn't allocate memory, don't attempt to write a bunch of values to the NULL pointer before returning it, but just pass the NULL along right away. Resolves parfait warnings of the form: Error: Null pointer dereference (CWE 476) Write to null pointer 'adapt' at line 322 of