[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 06 of 18] tools/blktap2: fix out of bounds access in block-log.c



Olaf Hering writes ("[Xen-devel] [PATCH 06 of 18] tools/blktap2: fix out of 
bounds access in block-log.c"):
> tools/blktap2: fix out of bounds access in block-log.c
> 
> block-log.c: In function 'ctl_close_sock':
> block-log.c:363:23: warning: array subscript is above array bounds 
> [-Warray-bounds]
> 
> Adjust loop condition in ctl_close_sock() to fix warning.
> Adjust array acccess in ctl_close() to actually access the array member.

Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

Good fix for unpleasant code, thanks.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.