public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] Avoid crash from uninitialized pipe_crc pointer
@ 2026-01-06  8:49 Pranay Samala
  2026-01-06  9:07 ` Reddy Guddati, Santhosh
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Pranay Samala @ 2026-01-06  8:49 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, sameer.lattannavar, pranay.samala

The data_t structure was not initialized, leaving pipe_crc with an
undefined value on first use and could result in freeing an invalid
pointer.
Initialize data_t to zero so pipe_crc starts as NULL and the
cleanup path safely manages the CRC object.

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/intel/kms_fb_coherency.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/kms_fb_coherency.c b/tests/intel/kms_fb_coherency.c
index 59bc29d19..ca915bc16 100644
--- a/tests/intel/kms_fb_coherency.c
+++ b/tests/intel/kms_fb_coherency.c
@@ -238,7 +238,7 @@ static void select_valid_pipe_output_combo(data_t *data)
 
 int igt_main()
 {
-	data_t data;
+	data_t data = { 0 };
 
 	igt_fixture() {
 		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-08 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06  8:49 [PATCH i-g-t] Avoid crash from uninitialized pipe_crc pointer Pranay Samala
2026-01-06  9:07 ` Reddy Guddati, Santhosh
2026-01-08 15:42   ` Kamil Konieczny
2026-01-06 11:24 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-01-06 11:35 ` ✓ i915.CI.BAT: " Patchwork
2026-01-06 14:57 ` ✓ Xe.CI.Full: " Patchwork
2026-01-06 17:46 ` ✗ i915.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox