[libvirt] [PATCH 0/3] Fix bitmap parsing code and add tests
Peter Krempa
pkrempa at redhat.com
Tue Aug 20 13:15:18 UTC 2013
On 08/16/13 14:41, Peter Krempa wrote:
> On 08/16/13 12:39, Daniel P. Berrange wrote:
>> On Fri, Aug 16, 2013 at 12:32:06PM +0200, Peter Krempa wrote:
>>> The bitmap parsing code might cause a crash of the application using it.
>>> Fix it and add tests so that it doesn't happen again.
>>>
>>> Peter Krempa (3):
>>> virbitmap: Refactor virBitmapParse to avoid access beyond bounds of
>>> array
>>> virbitmaptest: Fix function header formatting
>>> virbitmaptest: Add test for out of bounds condition
>>>
>>> src/util/virbitmap.c | 38 +++++++++++++-------------------
>>> tests/virbitmaptest.c | 60 ++++++++++++++++++++++++++++++++++++++++++++-------
>>> 2 files changed, 67 insertions(+), 31 deletions(-)
>>
>> ACK to all 3. I was just going to suggest adding tests to Alex,
>> when I saw your followup.
>
> Thanks, I've fixed the commit message of patch 3/3 according to Eric's
> suggestion and added info about the commit introducing the problem to
> 1/3 and pushed.
>
I've also backported the fix (1/3) to the maint branches:
v1.1.1-maint (thanks to Jan Tomko for doing that for me)
v1.1.0-maint
v1.0.6-maint
v1.0.5-maint
v1.0.4-maint and
v0.10.2-maint
I couldn't successfully build v1.0.3-maint and thus didn't bother with
the other maint branches.
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130820/5be9253a/attachment-0001.sig>
More information about the libvir-list
mailing list