aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/composite/.gitignore
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-01-30 18:39:14 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit9d8771562c847e957250f7df7411b9ce92dd1143 (patch)
treef607cc9624c24a1578780728be12b3279dcc2943 /nx-X11/programs/Xserver/composite/.gitignore
parentf578b86d34f5858fa215f6eebc12fec82f16792e (diff)
downloadnx-libs-9d8771562c847e957250f7df7411b9ce92dd1143.tar.gz
nx-libs-9d8771562c847e957250f7df7411b9ce92dd1143.tar.bz2
nx-libs-9d8771562c847e957250f7df7411b9ce92dd1143.zip
Clipboard.c: limit selection nxagentFindCurrentSelectionIndex can return
Normally you'd expect the loop going up to NumCurrentSelections. But the dix code will increase that number (but not nxagentMaxSelections) when drag and drop comes into play. In that case this helper will report a match for other selections than the ones the clipboard code knows about. The subsequent code will then use a higher index which will lead to out of range data reads (and writes!). Therefore we take nxagentMaxSelections here. The startup code ensures that both arrays will refer to the same selection for the first nxagentMaxSelections selection atoms. This way the clipboard code will not kick in for drag and drop resources. Fixes ArcticaProject/nx-libs#986
Diffstat (limited to 'nx-X11/programs/Xserver/composite/.gitignore')
0 files changed, 0 insertions, 0 deletions