[PATCH] qemu: Add VIR_FREE in ADD_BITMAP

2023-09-28 Thread Anastasia Belova
virBitmapFormat returns the string that should be freed. All strings in three ADD_BITMAP calls in qemuDomainGetGuestVcpusParams are contained in tmp. So memory leak is possible here without VIR_FREE. Fixes: 3e7db8d3e8 ("Remove backslash alignment attempts") Signed-off-by: Anasta

[PATCH] conf: fix error message

2023-08-07 Thread Anastasia Belova
From: Анастасия Белова In case of invalid placement its value should be passed as a parameter of virReportError instead of mode. Fixes: 93e82727ec ("numatune: Encapsulate numatune configuration in order to unify results") Signed-off-by: Anastasia Belova --- src/conf/numa_conf.c

[PATCHv2] storage_file_probe: change maximum len value in vmdk4GetBackingStore

2023-04-03 Thread Anastasia Belova
desc length should be always less than VIR_STORAGE_MAX_HEADER. If len = VIR_STORAGE_MAX_HEADER, desc may be out of bounds. Fixes: 348b4e254b ("storage: always probe type with buffer") Signed-off-by: Anastasia Belova --- v2: change Fixes: line src/storage_file/storage_file_probe.c |