UBsan runtime error of virsh snapshot-list
Software environment
- Operating system: RHEL9
- Architecture: x86_64
- libvirt version: v9.7.0-126-gbfe53e91
Description of problem
As subject
Steps to reproduce
- Compile libvirt with undefined sanitizer:
-Db_sanitize=address,undefined
- Define a domain
- List the snapshots by
virsh snapshot-list
virsh snapshot-list rhel-9.2
../tools/virsh-snapshot.c:1314:9: runtime error: null pointer passed as argument 1, which is declared to never be null
Name Creation Time State
-------------------------------
Additional information
Code location: https://github.com/libvirt/libvirt/blob/master/tools/virsh-snapshot.c#L1314