]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virbitmaptest: Add test for out of bounds condition
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2013 10:13:27 +0000 (12:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2013 12:39:16 +0000 (14:39 +0200)
commit7efd5fd1b0225436cbbae1181ab41c2d3eca43f9
treea965880aadacda48fe070697f0a35047cdb24314
parent536d38128e749fa5b149b9e168224280c3ad348c
virbitmaptest: Add test for out of bounds condition

Previous patch fixed an issue where, when parsing a bitmap from the
string, the bounds of the bitmap weren't checked. That flaw resulted into
crashes. This test tests that case to avoid it in the future.
tests/virbitmaptest.c