imagemagick/encoder_heic_fuzzer: Bad-cast to std::__1::__shared_weak_count from invalid vptr in std::__1::shared_ptr<heif::HeifPixelImage>::~shared_ptr

2019-06-16T14:21:25
ID OSSFUZZ-15308
Type ossfuzz
Reporter Google
Modified 2019-07-21T15:26:45

Description

Project: https://github.com/imagemagick/imagemagick.git

Detailed report: https://oss-fuzz.com/testcase?key=5669433122488320

Project: imagemagick Fuzzer: libFuzzer_imagemagick_encoder_heic_fuzzer Fuzz target binary: encoder_heic_fuzzer Job Type: libfuzzer_ubsan_imagemagick Platform Id: linux

Crash Type: Bad-cast Crash Address: 0x0000007f9b29 Crash State: Bad-cast to std::__1::__shared_weak_count from invalid vptr std::__1::shared_ptr<heif::HeifPixelImage>::~shared_ptr heif_image_release

Sanitizer: undefined (UBSAN)

Recommended Security Severity: High

Regressed: https://oss-fuzz.com/revisions?job=libfuzzer_ubsan_imagemagick&range=201906150230:201906160232

Reproducer Testcase: https://oss-fuzz.com/download?testcase_id=5669433122488320

Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for instructions to reproduce this bug locally.

This bug is subject to a 90 day disclosure deadline. If 90 days elapse without an upstream patch, then the bug report will automatically become visible to the public.

When you fix this bug, please * mention the fix revision(s). * state whether the bug was a short-lived regression or an old bug in any stable releases. * add any other useful information. This information can help downstream consumers.

If you need to contact the OSS-Fuzz team with a question, concern, or any other feedback, please file an issue at https://github.com/google/oss-fuzz/issues.