Multiple off-by-one errors in the (1) MakeBigReq and (2) SetReqLen macros in include/X11/Xlibint.h in X11R6.x and libX11 before 1.6.0 allow remote attackers to have unspecified impact via a crafted request, which triggers a buffer overflow.
https://bugs.freedesktop.org/show_bug.cgi?id=56508
http://www.ubuntu.com/usn/USN-2568-1
http://www.securityfocus.com/bid/73962
http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
http://www.debian.org/security/2015/dsa-3224
http://seclists.org/oss-sec/2015/q2/81
http://lists.x.org/archives/xorg-announce/2015-April/002561.html