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.96k stars 596 forks source link

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

Closed stolk closed 1 day ago

stolk commented 2 days 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: