Re: [PATCH 1/1] qemuProcessEventSubmit : rename vm to event->vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 17, 2023 at 11:51:07 +0530, Shaleen Bathla wrote:
> Coverity scan reports use after free issue which is a false positive.
> In error case, free event->vm instead of vm to avoid this warning in
> coverity.

This is an insufficient justification. We normally don't modify the code
_only_ to silence coverity.

The reasoning is that it can be either fixed by coverity at some point,
or worse coverity once again starting to report a problem with the code
because of a different issue.

You can try to come up with a commit message that justifies the change
in a different way which would be accepted normally.
(E.g. "making it obvious to the reader".)





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux