libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context.cc mishandles references to non-existing alpha images.
Related bugs and status
CVE-2019-11471 (Candidate)
is related to these bugs: