Re: [libvirt] [PATCH] conf: fix crash when parse a disordered numa settings

2015-09-08 Thread lhuang
On 09/08/2015 04:40 PM, Michal Privoznik wrote: On 08.09.2015 06:59, Luyao Huang wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1260846 Introduced by 8fedbbdb, if we parse the disordered numa cell, will get segfault. This is because we allow parse the numa cell not in order and we alloc

Re: [libvirt] [PATCH] conf: fix crash when parse a disordered numa settings

2015-09-08 Thread Michal Privoznik
On 08.09.2015 06:59, Luyao Huang wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1260846 > > Introduced by 8fedbbdb, if we parse the disordered numa > cell, will get segfault. This is because we allow parse > the numa cell not in order and we alloc them before the > parse loop, the cpumask

[libvirt] [PATCH] conf: fix crash when parse a disordered numa settings

2015-09-07 Thread Luyao Huang
https://bugzilla.redhat.com/show_bug.cgi?id=1260846 Introduced by 8fedbbdb, if we parse the disordered numa cell, will get segfault. This is because we allow parse the numa cell not in order and we alloc them before the parse loop, the cpumask maybe NULL when parse each numa cell. Signed-off-by: