AcademySoftwareFoundation / OpenImageIO

Reading, writing, and processing images in a wide variety of file formats, using a format-agnostic API, aimed at VFX applications.
https://openimageio.readthedocs.org
Apache License 2.0
1.98k stars 597 forks source link

[image output] Initialize pixels of partial tile conversion buffer. #4462

Closed stolk closed 1 month ago

stolk commented 1 month ago

When writing a partial tile, the unused pixels still go through float conversion.

This means, that floating point operations are done on uninitialized data.

This can easily lead to NaN and to floating point exceptions, if those were to be enabled.

This change will set the shared buffer used for all partial tiles to all zero pixels.

Tested by running valgrind before and after the change

FIXES: #4461

Description

Tests

Checklist: