[ccan] [PATCH] bitmap: Don't crash if allocation fails in bitmap_alloc0() & friends
David Gibson
david at gibson.dropbear.id.au
Tue Jun 2 19:59:56 AEST 2015
On Mon, Jun 01, 2015 at 06:10:00PM +0300, Kirill Smelkov wrote:
> Currently, if allocation fails, inside bitmap_alloc0(), we'll continue
> to use bitmap=NULL pointer and pass it to bitmap_zero() which will
> SIGSEGV.
>
> Cc: David Gibson <david at gibson.dropbear.id.au>
> Signed-off-by: Kirill Smelkov <kirr at nexedi.com>
Thanks, applied.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20150602/d02e0cda/attachment.sig>
More information about the ccan
mailing list