• 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
..
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 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...
fix-miregion Loading commit data...
fix-miregion-private Loading commit data...
fix-region Loading commit data...