Throw if open file with EXV_ENABLE_FILESYSTEM off
If ImageFactory::createIo() is called with a file path and has been built with EXV_ENABLE_FILESYSTEM off it returns a NULL pointer. ImageFactory::open() then calls io->open() on this pointer, causing a segfault. The documentation of ImageFactory::createIo does not say it can return a NULL pointer. This commit makes it throw an exception instead of returning a NULL pointer. (cherry picked from commit b0f1c48b180420837dd0663b9ac689c21bd168d0)main
parent
273873048f
commit
069de70654
Loading…
Reference in New Issue