Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 037679138895ea6ae78e020e1858eb07 > files > 4

x11-driver-video-sisimedia-0.9.1-2.20091203.15.mga3.src.rpm

From 49c641b638ac36d2a559555c04a3bd2777c8d071 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@sun.com>
Date: Fri, 1 May 2009 16:52:10 -0700
Subject: [PATCH 04/10] Make sisRegs3D4 big enough to hold all values written to it

Increase size from 0xff to 0x100 since SiS315Save (sis_dac.c line 752)
writes values into sisRegs3D4[0x00..0xff] if ChipType >= XGI_20

[This bug was found by the Parfait bug checking tool.
 For more information see http://research.sun.com/projects/parfait ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
diff -p -up xf86-video-sis-0.9.1/src/sis.h.orig xf86-video-sis-0.9.1/src/sis.h
--- xf86-video-sis-0.9.1/src/sis.h.orig	2013-04-28 15:35:31.861779421 +0300
+++ xf86-video-sis-0.9.1/src/sis.h	2013-04-28 15:35:31.918780052 +0300
@@ -815,7 +815,7 @@ typedef struct {
     UChar  sisRegsGR[10];
     UChar  sisDAC[768];
     UChar  sisRegs3C4[0x80];
-    UChar  sisRegs3D4[0xff];
+    UChar  sisRegs3D4[0x100];
     UChar  sisRegs3C2;
     UChar  sisCapt[0x60];
     UChar  sisVid[0x80];