aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/coverage/compare_gcov_json.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-05-02 16:18:18 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-05-03 15:47:48 +0200
commit5e9efe31f1de05c8c65a7383fcbf211ebded6a22 (patch)
treef06288723865876151c09259794d75d0080d37a8 /scripts/coverage/compare_gcov_json.py
parenttarget/i386: Introduce SapphireRapids-v3 to add missing features (diff)
downloadqemu-5e9efe31f1de05c8c65a7383fcbf211ebded6a22.tar.xz
qemu-5e9efe31f1de05c8c65a7383fcbf211ebded6a22.zip
bitmap: Use g_try_new0/g_new0/g_renew
Avoids an explicit use of sizeof(). The GLib allocation macros ensure that the multiplication by the size of the element uses the right type and does not overflow. While at it, change bitmap_new() to use g_new0 directly. Its current impl of calling bitmap_try_new() followed by a plain abort() has worse diagnostics than g_new0, which uses g_error to report the actual allocation size that failed. Cc: qemu-trivial@nongnu.org Cc: Roman Kiryanov <rkir@google.com> Reviewed-by: Daniel Berrange <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions