Re: [PATCH] hw/i386: fix NULL-dereference

2024-11-07 Thread Bernhard Beschow
Am 7. November 2024 09:19:05 UTC schrieb Bernhard Beschow : > > >Am 7. November 2024 07:04:10 UTC schrieb Dmitry Frolov : >>If pcmc->pci_enabled is false, pcms->pcibus is NULL and is passed >>to pc_nic_init() where it is being dereferenced. >> >>Found making check with enabled sanitizers. >> >>S

Re: [PATCH] hw/i386: fix NULL-dereference

2024-11-07 Thread Bernhard Beschow
Am 7. November 2024 09:04:16 UTC schrieb Zhao Liu : >+Philippe for ISAPC > >On Thu, Nov 07, 2024 at 10:04:10AM +0300, Dmitry Frolov wrote: >> Date: Thu, 7 Nov 2024 10:04:10 +0300 >> From: Dmitry Frolov >> Subject: [PATCH] hw/i386: fix NULL-dereference >>

Re: [PATCH] hw/i386: fix NULL-dereference

2024-11-07 Thread Bernhard Beschow
Am 7. November 2024 07:04:10 UTC schrieb Dmitry Frolov : >If pcmc->pci_enabled is false, pcms->pcibus is NULL and is passed >to pc_nic_init() where it is being dereferenced. > >Found making check with enabled sanitizers. > >Signed-off-by: Dmitry Frolov >--- > hw/i386/pc_piix.c | 6 +++--- > 1 fi

Re: [PATCH] hw/i386: fix NULL-dereference

2024-11-07 Thread Zhao Liu
+Philippe for ISAPC On Thu, Nov 07, 2024 at 10:04:10AM +0300, Dmitry Frolov wrote: > Date: Thu, 7 Nov 2024 10:04:10 +0300 > From: Dmitry Frolov > Subject: [PATCH] hw/i386: fix NULL-dereference > > If pcmc->pci_enabled is false, pcms->pcibus is NULL and is passed > to p

[PATCH] hw/i386: fix NULL-dereference

2024-11-06 Thread Dmitry Frolov
If pcmc->pci_enabled is false, pcms->pcibus is NULL and is passed to pc_nic_init() where it is being dereferenced. Found making check with enabled sanitizers. Signed-off-by: Dmitry Frolov --- hw/i386/pc_piix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/i386/pc_