A null pointer dereference occurs in libvk_volume_free if
it's called on a partially initialized libvk_volume struct.
The function volume_load_escrow_packet allocates a zeroed
struct, and if it fails to parse the VOLUME_FORMAT attribute
from the input packet, it calls libvk_volume_free in its
error path. At this point, vol->format is still NULL,
causing strcmp(vol->format, ...) to crash.
A null pointer dereference occurs in
libvk_volume_freeifit's called on a partially initialized
libvk_volumestruct.The function
volume_load_escrow_packetallocates a zeroedstruct, and if it fails to parse the
VOLUME_FORMATattributefrom the input packet, it calls
libvk_volume_freein itserror path. At this point,
vol->formatis stillNULL,causing
strcmp(vol->format, ...)to crash.