Re: [PATCH] conf: clear the acpiNodeset field after freeing

2025-09-20 Thread Peter Krempa via Devel
On Tue, Sep 09, 2025 at 10:28:33 +0100, Daniel P. Berrangé via Devel wrote: > From: Daniel P. Berrangé > > The virDomainDeviceInfoClear method does not free the struct, only > its contents, so all pointer fields must be explicitly set to NULL > after releasing to avoid disk of double-free. > > R

[PATCH] conf: clear the acpiNodeset field after freeing

2025-09-20 Thread Daniel P . Berrangé via Devel
From: Daniel P. Berrangé The virDomainDeviceInfoClear method does not free the struct, only its contents, so all pointer fields must be explicitly set to NULL after releasing to avoid disk of double-free. Reported by coverity: *** CID 895678: Memory - corruptions (USE_AFTER_FREE) /

Re: [PATCH] conf: clear the acpiNodeset field after freeing

2025-09-09 Thread Daniel P . Berrangé via Devel
On Tue, Sep 09, 2025 at 11:36:42AM +0200, Peter Krempa wrote: > On Tue, Sep 09, 2025 at 10:28:33 +0100, Daniel P. Berrangé via Devel wrote: > > From: Daniel P. Berrangé > > > > The virDomainDeviceInfoClear method does not free the struct, only > > its contents, so all pointer fields must be expli