[Spice-devel] [PATCH] Avoid NULL-dereference if canvas_get_image errors out

Christophe Fergeau cfergeau at redhat.com
Tue Jul 3 13:56:34 UTC 2018


On Tue, Jul 03, 2018 at 03:51:58PM +0200, Christophe Fergeau wrote:
> > Depending on context, it may. So what? Are you suggesting to do something else?
> 
> if (d == NULL) {
>     abort();
>     free(d);

(obviously not 'd' here, but free(something);)

Christophe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180703/060aa712/attachment.sig>


More information about the Spice-devel mailing list