libX11 missing very old fixes
Submitted by Ulrich Sibiller
Assigned to Xorg Project Team
Created attachment 117184 off-by-one fixes ported to xorg git
I stumbled across an off-by-one fix for XKBMAlloc.c in NoMachine's NX code (http://code.x2go.org/gitweb?p=nx-libs.git;a=commitdiff;h=15cee47a496ef891923949ade073cf4ffabb9c73#patch3).
It turned out that this bug (along with some others) had been fixed in 2005 in the xfree86 code by Michal Maruška (see http://cgit.freedesktop.org/~libv/xfree86/commit/lib/X11?id=23202557b77fd2edd167ae00103dcd81782401d5)
(more Details here: https://firstname.lastname@example.org/msg07272.html)
These fixes never made their way to xorg, it seems.
At least the off-by-one fix should be included. I have attached a patch for this.
Attachment 117184, "off-by-one fixes ported to xorg git":