xorg-libx11/specs/libX11
Kees Cook 54540d7cba libX11: check size of GetReqExtra after XFlush
Two users of GetReqExtra pass arbitrarily sized allocations from the
caller (ModMap and Host). Adjust _XGetRequest() (called by the GetReqExtra
macro) to double-check the requested length and invalidate "req" when
this happens. Users of GetReqExtra passing lengths greater than the Xlib
buffer size (normally 16K) must check "req" and fail gracefully instead
of crashing.

Any callers of GetReqExtra that do not check "req" for NULL
will experience this change, in the pathological case, as a NULL
dereference instead of a buffer overflow. This is an improvement, but
the documentation for GetReqExtra has been updated to reflect the need
to check the value of "req" after the call.

Bug that manifested the problem:
https://bugs.launchpad.net/ubuntu/+source/x11-xserver-utils/+bug/792628

Signed-off-by: Kees Cook <kees@outflux.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-22 23:51:38 -07:00
..
AppA.xml informaltable & table cleanup 2012-01-21 17:59:51 -07:00
AppB.xml Cleanup IDs and links in doc 2011-10-07 22:52:30 -06:00
AppC.xml libX11: check size of GetReqExtra after XFlush 2013-07-22 23:51:38 -07:00
AppD.xml Add olinks from libX11 spec to ICCCM spec 2012-04-17 17:49:50 -07:00
CH01.xml Add olinks from libX11 spec to ICCCM spec 2012-04-17 17:49:50 -07:00
CH02.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH03.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH04.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH05.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH06.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH07.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH08.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH09.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH10.xml Add olinks from libX11 spec to ICCCM spec 2012-04-17 17:49:50 -07:00
CH11.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH12.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH13.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH14.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH15.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
CH16.xml troff macro expansion in specs/libX11 2013-06-07 20:12:25 -07:00
credits.xml Add X11R7 sections to the libX11 & XKBlib credits to cover Docbook conversion 2012-04-17 18:17:53 -07:00
glossary.xml Add olinks from libX11 & localedb specs to ICCCM spec 2012-04-17 18:01:36 -07:00
libX11.xml libX11 specs: use <copyright> for first holder of multi license 2011-09-20 16:08:21 -04:00
Makefile.am Make doc install subdirectories more like the pre-docbook.am paths 2011-04-12 18:18:39 -07:00