• Mihai Moldovan's avatar
    nx-X11/programs/Xserver/hw/nxagent/Handlers.h: fix stack smashing related to… · 129cc6af
    Mihai Moldovan authored
    nx-X11/programs/Xserver/hw/nxagent/Handlers.h: fix stack smashing related to different data type sizes between Xserver and Xlib.
    
    While on the X server side we were expecting a 32bit value, the Xlib side in
    nxcompext wrote a 64bit integer to the 32bit location, hence overwriting
    "random" data on the stack (most notably the return adress.)
    
    We can work around this by using the Xlib-based Window data type on the
    server-side as well, but this problem is likely a more general one.
    
    Calling functions from libcompext in nxagent sounds like a bad idea. Other code
    locations might well be affected by issues alike to that as well.
    
    In order to silence compiler warnings, use a "macro hack" for overriding the
    "Window" type in NXlib.h.
    129cc6af
Name
Last commit
Last update
..
config Loading commit data...
extras Loading commit data...
include Loading commit data...
lib Loading commit data...
programs Loading commit data...
BUILD Loading commit data...
CHANGELOG Loading commit data...
COPYING Loading commit data...
ChangeLog.X.org Loading commit data...
Imakefile Loading commit data...
LABEL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
README.crypto Loading commit data...
RELNOTES Loading commit data...
registry Loading commit data...
xf86Date.h Loading commit data...