Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Issue #11912] throw mxnet exceptions when decoding invalid images. #12999

Merged
merged 5 commits into from
Nov 5, 2018
Merged

[Issue #11912] throw mxnet exceptions when decoding invalid images. #12999

merged 5 commits into from
Nov 5, 2018

Commits on Oct 28, 2018

  1. 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.
    lgov committed Oct 28, 2018
    Configuration menu
    Copy the full SHA
    368f8f4 View commit details
    Browse the repository at this point in the history
  2. 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.
    lgov committed Oct 28, 2018
    Configuration menu
    Copy the full SHA
    473abd6 View commit details
    Browse the repository at this point in the history
  3. 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.
    lgov committed Oct 28, 2018
    Configuration menu
    Copy the full SHA
    829b660 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2018

  1. Rollback a "empty buffer" check in the image python bindings that's n…

    …ow more generally handled
    
    in the core code.
    
    * python/mxnet/image/image.py: remove buffer length check.
    lgov committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    5683e25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56e7db6 View commit details
    Browse the repository at this point in the history