ref: d569c6392c98a5f3037814add1f03a0dc149a86e
parent: 75b9d4899061d4e329aab7cf5e5d37697d59fa81
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Apr 24 09:19:18 EDT 2022
Avoid initializing the PNG row It gets overwritten right after, and uncovers an error in the interlaced read
--- a/src/gfx/process.cpp
+++ b/src/gfx/process.cpp
@@ -310,7 +310,7 @@
size_t nbRowBytes = png_get_rowbytes(png, info);
assert(nbRowBytes != 0);
- std::vector<png_byte> row(nbRowBytes);
+ DefaultInitVec<png_byte> row(nbRowBytes);
if (interlaceType == PNG_INTERLACE_NONE) {
for (png_uint_32 y = 0; y < height; ++y) {