#30 fix possible null pointer dereference, as reported by SAST scan
Merged by mhlavink. Opened by mhlavink.
mhlavink/volume_key master  into  master

Download 30.patch

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.

Commit ef0d944e fixes this pull-request

Pull-Request has been merged by mhlavink

Pull-Request has been merged by mhlavink

Metadata