qemu-cr16/contrib/plugins
Peter Maydell 04387b4a05 contrib/plugins/execlog: Explicitly check for qemu_plugin_read_register() failure
In insn_check_regs() we don't explicitly check whether
qemu_plugin_read_register() failed, which confuses Coverity into
thinking that sz can be -1 in the memcmp().  In fact the assertion
that sz == reg->last->len means this can't happen, but it's clearer
to both humans and Coverity if we explicitly assert that sz > 0, as
we already do in init_vcpu_register().

Coverity: CID 1611901, 1611902
Fixes: af6e4e0a22 ("contrib/plugins: extend execlog to track register changes")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20250710144543.1187715-1-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250922093711.2768983-17-alex.bennee@linaro.org>
2025-09-26 10:07:54 +01:00
..
bbv.c contrib/plugins/bbv.c: Start bb index from 1 2024-12-28 14:42:53 +03:00
cache.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
cflow.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
drcov.c contrib/plugins/drcov: Fix string format 2023-09-07 12:54:17 +02:00
execlog.c contrib/plugins/execlog: Explicitly check for qemu_plugin_read_register() failure 2025-09-26 10:07:54 +01:00
hotblocks.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
hotpages.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
howvec.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
hwprofile.c contrib/plugins: Fix type conflict of GLib function pointers 2025-04-25 17:09:58 +02:00
ips.c contrib/plugins: allow setting of instructions per quantum 2025-06-07 16:40:44 +01:00
lockstep.c contrib/plugins: add compat for g_memdup2 2024-07-30 11:44:21 +01:00
meson.build meson: fix Windows build 2025-06-16 13:16:27 -04:00
stoptrigger.c contrib/plugins/stoptrigger: fix 32-bit build 2025-01-17 10:44:44 +00:00
win32_linker.c plugins: make test/example plugins work on windows 2023-11-08 15:15:23 +00:00