• Mihai Moldovan's avatar
    Create Windows and fix drawing issues on Big Endian 64bit systems… · 2d68caca
    Mihai Moldovan authored
    Create Windows and fix drawing issues on Big Endian 64bit systems (057_nx-X11_sanitize-eventmasks.full.patch).
    
      Multiple endiannes issues were setting incorrect event masks when creating and
      drawing X11 windows.
    
      This time, a smaller integer has been casted to a bigger one and passed to some
      function actually setting its value.
    
      This meant, that garbage from stack was attached to the smaller integer value,
      putting unknown memory into the lower bytes of the bigger integer.
    
      Fix this by creating a big, initialized temporary variable, let the function do
      its magic on that one and pass the value back to the smaller variable--and
      cross your fingers the smaller variable can hold it without overrunning. (The
      last bit is a design issue we can't really fix and has been around even before
      this patch.)
    2d68caca
Name
Last commit
Last update
..
GL Loading commit data...
XTrap 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 Loading commit data...
include Loading commit data...
mfb 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...
Imakefile Loading commit data...
Xserver.man Loading commit data...