Commit cb8cfca
fix(ImageInput): Initialize pixels of partial tile conversion buffer. (AcademySoftwareFoundation#4462)
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: AcademySoftwareFoundation#4461
Signed-off-by: Bram Stolk <b.stolk@gmail.com>
Signed-off-by: Scott Wilson <scott@propersquid.com>1 parent 9676de9 commit cb8cfca
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
| |||
0 commit comments