Hello list,

I noticed a bug in Jpeg2000Input::setup_event_mgr which was causing a crash
for me when reading j2k files.

Specifically, setup_event_mgr creates a opj_event_mgr_t on the stack,
populates the 3 handlers with the dummy handler, calls opj_set_event_mgr
and returns.
This leads to the decompressor having a bogus event manager which for me
leads to a crash when openjpeg tries to report progress.

I fixed this locally by just replacing the call to setup_event_mgr in
Jpeg2000Input::open with the contents of the function.

I'm not set up to contribute directly to OIIO so I thought I'd post this to
the list.

-Nicolas
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to