From a9f623f0a63372ca0705e8394fadf514dec55b1c Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Tue, 21 May 2013 21:54:55 +0200 Subject: Add a couple fixups for the security patches Add a couple fixups for the security patches - off-by-one in xkb - memory leak in an error path Backport from debian to NX: Ulrich Sibiller --- nx-X11/lib/X11/Font.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nx-X11/lib/X11/Font.c') diff --git a/nx-X11/lib/X11/Font.c b/nx-X11/lib/X11/Font.c index 0501ae279..d311cd0f7 100644 --- a/nx-X11/lib/X11/Font.c +++ b/nx-X11/lib/X11/Font.c @@ -508,6 +508,7 @@ _XF86BigfontQueryFont ( any real font needs, so the combined total doesn't overflow either */ if (reply.nUniqCharInfos > ((ULONG_MAX / 2) / SIZEOF(xCharInfo)) || reply.nCharInfos > ((ULONG_MAX / 2) / sizeof(CARD16))) { + Xfree(fs->properties); Xfree((char *) fs); _XEatDataWords(dpy, reply_left); return (XFontStruct *)NULL; -- cgit v1.2.3