Re: [PATCHv3] PHYP: Checking for NULL values when building new guest

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

 



2010/9/29 Daniel Veillard <veillard@xxxxxxxxxx>:
> On Wed, Aug 25, 2010 at 01:27:44PM -0300, Eduardo Otubo wrote:
>> When creating a new gust, the function phypBuildLpar() was not
>> checking for NULL values, making the driver to have a segmentation
>> fault.
>> ---
>> Âsrc/phyp/phyp_driver.c | Â 23 +++++++++++++++++++++++
>> Â1 files changed, 23 insertions(+), 0 deletions(-)
>
> ÂSeems we had forgotten that old patch, applied it,
>
> Â thanks !
>
> Daniel
>

Ah, yes, but the patch you applied didn't fix the segfault a few lines
below where def->disks[0]->src is used without checking for
def->ndisks > 0 before, as I pointed out in an earlier review.

I've send an additional patch to fix this:

  https://www.redhat.com/archives/libvir-list/2010-September/msg00571.html

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]