[Spice-devel] [PATCH 1/7] reds: Abort on BN-new failures

Uri Lublin uril at redhat.com
Wed Sep 19 06:53:44 PDT 2012


On 09/12/2012 05:17 PM, Christophe Fergeau wrote:
> BN_new returns NULL on allocation failures. Given that we abort
> on malloc allocation failures, we should also abort here. The
> current code will segfault when BN_new fails as it immediatly tries
> to use the NULL pointer.
> ---
>   server/reds.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
>

Ack series.



More information about the Spice-devel mailing list