Commit Graph

4 Commits

Author SHA1 Message Date
metamerism c341052c92
[openexr] rewind streams between readSingle and readMulti (#4443)
Signed-off-by: Peter Hillman <peter@pedro.kiwi>
2020-09-12 08:48:33 -07:00
seabeepea 9743eb4bf3
Catch all exceptions via (...) rather than by explicit type (#4260)
The purpose of the fuzzer is to very that an exception is thrown, not
to validate that the correct *type* of exception is thrown. That is
the responsibility of the project's traditional test suite. Therefore,
the exception type is inconsequential.

Signed-off-by: Cary Phillips <seabeepea@gmail.com>
2020-08-06 06:10:51 -07:00
Ravi Jotwani 96c3d4f440
[openexr] Replace buf_to_file with IStream (#4094)
* Add a working skeleton for OpenEXR fuzzers.

* added openexr fuzzers, updated build script to include them

* cleaned up bash loop

* [openexr] Replace buf_to_file with StdISStream.

Version 2.5.0 of OpenEXR added a StdISStream class that turns
a std::string into an Imf::IStream, which can be used instead of
filenames when opening an OpenEXR image.  This commit adds code which
wraps the fuzzer input into a StdISStream, which enables us to remove
the hacky buf_to_file function.

* updated deepscanlines_fuzzer to use IStream instead of filenames

* replace "/work" with  in build.sh

* Reformat CMake settings, and also prevent building utils and examples.

* Reformat and change names in build.sh.

* Omit the version prefix when building OpenEXR and IlmBase libraries.

* updated final two fuzzers to use istream

* fixed additional conflict in project.yaml

* get header size from input

* increased header size

* Fix argument types in readFileSingle

Co-authored-by: Michael Jezierny <mtjz@google.com>
Co-authored-by: Abhishek Arya <inferno@chromium.org>
2020-07-14 14:01:37 -07:00
Michael Jezierny c8279e2c2d
[openexr] Initial integration of OpenEXR fuzzers. (#4060)
* Add a working skeleton for OpenEXR fuzzers.

* added openexr fuzzers, updated build script to include them

* cleaned up bash loop

* replace "/work" with  in build.sh

* Reformat CMake settings, and also prevent building utils and examples.

* Reformat and change names in build.sh.

* Omit the version prefix when building OpenEXR and IlmBase libraries.

* Correct the contact addresses for OpenEXR.

Co-authored-by: Ravi Jotwani <rjotwani@google.com>
2020-07-07 14:28:37 -07:00