The source project of this merge request has been removed.
heif: fix error handling
It should fix a bug discovered in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54246
It should fix a bug discovered in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54246