• 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
bin Loading commit data...
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
nx-X11 Loading commit data...
nxcomp Loading commit data...
nxcompext Loading commit data...
nxcompshad Loading commit data...
nxproxy Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile Loading commit data...
README.NX-development Loading commit data...
README.keystrokes Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
VERSION.x2goagent Loading commit data...
fix-patch-whitespace Loading commit data...
nx-libs.spec Loading commit data...
replace.sh Loading commit data...
version.sh Loading commit data...
x2goagent.features Loading commit data...