diff options
| author | Peter Xu <peterx@redhat.com> | 2022-03-01 16:39:25 +0800 |
|---|---|---|
| committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-03-02 18:20:45 +0000 |
| commit | 3ff57401870481825c50d17afd393f64fa64a0b0 (patch) | |
| tree | 2c3627c66b55a5e374d4ce3c129c3ec822fb08f7 /python/qemu/utils/qemu_ga_client.py | |
| parent | e031149c78489413038e934eec9f54ac699cf322 (diff) | |
| download | focaccia-qemu-3ff57401870481825c50d17afd393f64fa64a0b0.tar.gz focaccia-qemu-3ff57401870481825c50d17afd393f64fa64a0b0.zip | |
tests: Pass in MigrateStart** into test_migrate_start()
test_migrate_start() will release the MigrateStart structure that passed in, however that's not super clear to the caller because after the call returned the pointer can still be referenced by the callers. It can easily be a source of use-after-free. Let's pass in a double pointer of that, then we can safely clear the pointer for the caller after the struct is released. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20220301083925.33483-26-peterx@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> dgilbert: Fixup apply since I didn't take 24/25
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions