Re: [libvirt] [PATCH 2/3] vz: fix crash when parsing unexpected disk configuration

2016-06-11 Thread Maxim Nestratov
07.06.2016 9:24, Nikolay Shirokovskiy пишет: On 06.06.2016 20:59, Maxim Nestratov wrote: As it turned out PrlVmDev_GetStackIndex can return negative values without reporting an error, which is incorrect but nevertheless. After that we feed this negative index to virIndexToDiskName, which in tu

Re: [libvirt] [PATCH 2/3] vz: fix crash when parsing unexpected disk configuration

2016-06-06 Thread Nikolay Shirokovskiy
On 06.06.2016 20:59, Maxim Nestratov wrote: > As it turned out PrlVmDev_GetStackIndex can return negative values > without reporting an error, which is incorrect but nevertheless. > After that we feed this negative index to virIndexToDiskName, > which in turn returns NULL and we set it to virDoma

[libvirt] [PATCH 2/3] vz: fix crash when parsing unexpected disk configuration

2016-06-06 Thread Maxim Nestratov
As it turned out PrlVmDev_GetStackIndex can return negative values without reporting an error, which is incorrect but nevertheless. After that we feed this negative index to virIndexToDiskName, which in turn returns NULL and we set it to virDomainDiskDef.dst. Using virDiskNameToBusDeviceIndex with