OK, thanks Peter.
I will show this when sending patches later.
От: Peter Krempa
Отправлено: 11 октября 2023 г. 11:30:48
Кому: Миронов Сергей Владимирович
Копия: libvir-list@redhat.com
Тема: Re: [PATCHv2 1/1] Changes from [v1]:
On Wed, Oct 11, 2023 at 11:19:08
От: Peter Krempa
Отправлено: 14 сентября 2023 г. 13:17
Кому: Миронов Сергей Владимирович
Копия: libvirt-secur...@redhat.com; qemu-de...@nongnu.org;
libvir-list@redhat.com; sdl.q...@linuxtesting.org
Тема: Re: [sdl-qemu] [PATCH 0/1] There are no checks, virDomainChrSourceDefNew
can return 0
CC
There are no checks, virDomainChrSourceDefNew can return 0.
Return value of a function 'virDomainChrSourceDefNew'
is dereferenced at qemu_hotplug.c without checking for NULL,
but it is usually checked for this function.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes
No checks, dereferencing possible.
Return value of a function 'virDomainChrSourceDefNew'
is dereferenced at qemu_command.c without checking
for NULL, but it is usually checked for this function.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 1f85f0967b ("ci: jobs.sh: