[PATCH] qtest/migration: Fix potential NPD through getenv

2025-06-27 Thread xjdeng
`, the function `migrate_postcopy_complete` is called. Inside, `migration_get_env` checks if `QEMU_ENV_SRC` and `QEMU_ENV_DST` are set before use. Thus, these variables can be NULL, leading to a potential null pointer dereference in `find_common_machine_version`. Signed-off-by: xjdeng --- tests

[PATCH] qtest/migration: Fix potential NPD through getenv

2025-06-26 Thread xjdeng
`, the function `migrate_postcopy_complete` is called. Inside, `migration_get_env` checks if `QEMU_ENV_SRC` and `QEMU_ENV_DST` are set before use. Thus, these variables can be NULL, leading to a potential null pointer dereference in `find_common_machine_version`. Signed-off-by: xjdeng --- tests