This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…12999) * Raise an excption when passing an empty buffer to imdecode. * src/io/image_io.cc: Check the length of the input buffer. * tests/python/unittest/test_image.py: Update the (already existing) test to expect a mx.base.MXNetError. * Raise an exception when passing an invalid data buffer to imdecode. * src/io/image_io.cc: Raise an exception when the image could not be decoded instead of just logging. * tests/python/unittest/test_image.py: Add a new test test_imdecode_invalid_image. * Raise an exception when passing an invalid data buffer to imdecode. * src/io/image_io.cc: Raise an exception when the image could not be decoded instead of just logging. * tests/python/unittest/test_image.py: Add a new test test_imdecode_invalid_image. * Rollback a "empty buffer" check in the image python bindings that's now more generally handled in the core code. * python/mxnet/image/image.py: remove buffer length check.
- Loading branch information