]> git.ipfire.org Git - thirdparty/qemu.git/commit
coverity-model: write models fully for non-array allocation functions
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jul 2021 16:03:16 +0000 (18:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Jul 2021 10:04:01 +0000 (12:04 +0200)
commite17bdaab2b36db54f0214a14f394fa773cee58df
treed0536c1be4d201813daef2b6f7ef61da592aad21
parent0da41187dfda6abecbcbc237471254ab614e063d
coverity-model: write models fully for non-array allocation functions

Coverity seems to have issues figuring out the properties of g_malloc0
and other non *_n functions.  While this was "fixed" by removing the
custom second argument to __coverity_mark_as_afm_allocated__, inline
the code from the array-based allocation functions to avoid future
issues.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/coverity-scan/model.c