Description: Fix out-of-bounds write in paintertest
 Fix buffer allocation for image_data_raw in TestImage constructor.
 The raw RGBA buffer was sized as _width * _height bytes, but indexed
 as _width * _height * 4, causing an out-of-bounds vector access that
 aborts the test under _GLIBCXX_ASSERTIONS (GCC 15 / dpkg 1.23.x).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-09-01

--- drumgizmo-0.9.20.orig/test/paintertest.cc
+++ drumgizmo-0.9.20/test/paintertest.cc
@@ -91,7 +91,7 @@ public:
 		has_alpha = alpha;
 
 		image_data.resize(_width * _height);
-		image_data_raw.resize(_width * _height);
+		image_data_raw.resize(_width * _height * 4);
 
 		// Store x and y coordinates as red and green colour components
 		for(std::uint8_t x = 0; x < _width; ++x)

