[ccan] [PATCH] bitmap: Don't crash if allocation fails in bitmap_alloc0() & friends
Kirill Smelkov
kirr at nexedi.com
Wed Jun 3 00:44:37 AEST 2015
On Tue, Jun 02, 2015 at 07:59:56PM +1000, David Gibson wrote:
> 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.
Thanks
More information about the ccan
mailing list