diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-10-16 18:57:47 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2020-10-16 20:47:31 +0200 |
commit | d1a967f3aefcffc6babeb25fccc912c0bfdb9fe3 (patch) | |
tree | 699e7cfae05945731de8fb335ab7887a3c2ff77d /nxcomp | |
parent | 67330d9ea185de0f08731c684363078e349b1845 (diff) | |
download | nx-libs-d1a967f3aefcffc6babeb25fccc912c0bfdb9fe3.tar.gz nx-libs-d1a967f3aefcffc6babeb25fccc912c0bfdb9fe3.tar.bz2 nx-libs-d1a967f3aefcffc6babeb25fccc912c0bfdb9fe3.zip |
randr: fix broken macros / memory corruption
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
Diffstat (limited to 'nxcomp')
0 files changed, 0 insertions, 0 deletions