Re: [PATCH] tests/plugins: fix use-after-free bug

2024-03-11 Thread Philippe Mathieu-Daudé
On 11/3/24 09:16, Paolo Bonzini wrote: rec->count.score is inside rec, which is freed before rec->count.score is. Reorder the instructions Reported by Coverity as CID 1539967. Cc: Alex Bennée Signed-off-by: Paolo Bonzini --- contrib/plugins/howvec.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] tests/plugins: fix use-after-free bug

2024-03-11 Thread Philippe Mathieu-Daudé
On 11/3/24 09:16, Paolo Bonzini wrote: rec->count.score is inside rec, which is freed before rec->count.score is. Reorder the instructions Reported by Coverity as CID 1539967. Cc: Alex Bennée Signed-off-by: Paolo Bonzini --- contrib/plugins/howvec.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] tests/plugins: fix use-after-free bug

2024-03-11 Thread Paolo Bonzini
rec->count.score is inside rec, which is freed before rec->count.score is. Reorder the instructions Reported by Coverity as CID 1539967. Cc: Alex Bennée Signed-off-by: Paolo Bonzini --- contrib/plugins/howvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins