OpenToonz - An open-source full-featured 2D animation creation software
C
fix(tzl): size the icon buffer guard by iconLy, not iconLx
Chandb9d5e3812ab
diff --git a/toonz/sources/image/tzl/tiio_tzl.cpp b/toonz/sources/image/tzl/tiio_tzl.cppindex 3ccfd9ffa..c54d5ee9f 100644--- a/toonz/sources/image/tzl/tiio_tzl.cpp+++ b/toonz/sources/image/tzl/tiio_tzl.cpp@@ -2111,7 +2111,7 @@ TImageP TImageReaderTzl::load14() {fread(&actualBuffSize, sizeof(TINT32), 1, chan);if (actualBuffSize <= 0 ||- actualBuffSize > (int)(iconLx * iconLx * sizeof(TPixelCM32)))+ actualBuffSize > (int)(iconLx * iconLy * sizeof(TPixelCM32)))throw TException("Loading tlv: icon buffer size error.");TRasterCM32P raux = TRasterCM32P(iconLx, iconLy);