xorg-libx11/include/X11
Igor V. Kovalenko 2356e59ff2 libX11: do not crash in GetResReq() macro
When _XGetRequest() detects that requested length exceeds remaining display
output buffer capacity it would return NULL. GetResReq() macro obtains "req"
pointer from a call to _XGetRequest() and then proceeds to assign request id
through "req" pointer which leads to NULL pointer dereference in this case.

Fix this by checking if "req" is valid before assigning request id.

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
2021-09-05 13:57:26 +03:00
..
extensions xkb: Provide <X11/extensions/XKBgeom.h> ourselves 2019-09-24 13:02:47 -04:00
.gitignore .gitignore: use common defaults with custom section # 24239 2009-11-14 09:26:16 -05:00
cursorfont.h Add an "X11_" string to header guards to avoid possible collision 2010-09-26 21:21:16 -07:00
ImUtil.h Avoid the use of "register" keyword in public headers. 2020-08-28 20:28:18 +00:00
Xcms.h Tell clang not to report -Wpadded warnings on public headers we can't fix 2013-01-09 20:50:32 -08:00
XKBlib.h Avoid the use of "register" keyword in XkbTranslateKeySym. 2020-08-15 00:48:56 +03:00
Xlib-xcb.h Add an "X11_" string to header guards to avoid possible collision 2010-09-26 21:21:16 -07:00
Xlib.h Xlib.h: spelling fix in comment 2021-05-03 19:08:03 +00:00
XlibConf.h.in nuke RCS Ids 2008-03-09 09:08:07 +01:00
Xlibint.h libX11: do not crash in GetResReq() macro 2021-09-05 13:57:26 +03:00
Xlocale.h Drop X_LOCALE fallback for OS'es without setlocale() 2013-11-22 22:02:17 -08:00
Xregion.h Avoid memory leak/corruption if realloc fails in Xregion.h:MEMCHECK macro 2013-08-20 12:51:04 -07:00
Xresource.h Add an "X11_" string to header guards to avoid possible collision 2010-09-26 21:21:16 -07:00
Xutil.h Tell clang not to report -Wpadded warnings on public headers we can't fix 2013-01-09 20:50:32 -08:00