• Ulrich Sibiller's avatar
    randr: fix broken macros / memory corruption · d1a967f3
    Ulrich Sibiller authored
    By casting the rrScrPriv to ScreenPtr we are using the offsets from
    the Screen structure for referencing data in the rrScrPriv structure
    causing data corruption. As both macros use the same casting this
    still works until the location where the data resides is
    overwritten. For 64bit the location was the "rotations" member in
    rrScrPriv which was not problematic because it is barely used. But on
    32bit it was "numCrtcs" which is heavily used. On unwrap this was 0
    and lead to a segfault.
    
    Fixes ArcticaProject/nx-libs#943
    d1a967f3
Name
Last commit
Last update
..
GL Loading commit data...
Xext Loading commit data...
Xi Loading commit data...
composite Loading commit data...
damageext Loading commit data...
dbe Loading commit data...
dix Loading commit data...
fb Loading commit data...
hw/nxagent Loading commit data...
include Loading commit data...
mi Loading commit data...
miext Loading commit data...
os Loading commit data...
randr Loading commit data...
record Loading commit data...
render Loading commit data...
xfixes Loading commit data...
xkb Loading commit data...
.gitignore Loading commit data...
Imakefile Loading commit data...
code-versions.txt Loading commit data...
fix-miregion Loading commit data...
fix-miregion-private Loading commit data...
fix-region Loading commit data...