From 1e624d9587a07c7e610ffceed960e3f77ed2e51d Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Tue, 21 Jul 2026 18:52:40 +0300 Subject: [PATCH] Cleanup CgeColor value in case of unsupported format --- Pix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pix.c b/Pix.c index e99870b..b2e6d8d 100644 --- a/Pix.c +++ b/Pix.c @@ -351,6 +351,8 @@ static int isLittleEndian(void) { static void readData(const struct FormatInfo *format, void *data, uint32_t x, CgeColor *value, const CgeColor *palette, int flags) { + memset(value, 0, sizeof(*value)); + switch (format->type) { default: return;