# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../libx11/CVE-2007-1667.patch # Copyright (C) 2007 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- diff -Nur libX11-1.0.0-orig/src/ImUtil.c libX11-1.0.0/src/ImUtil.c --- libX11-1.0.0-orig/src/ImUtil.c 2005-05-13 23:53:43.000000000 +0100 +++ libX11-1.0.0/src/ImUtil.c 2007-07-27 15:50:57.000000000 +0100 @@ -385,6 +385,8 @@ XImage *image; { if (image->depth == 0 || image->depth > 32 || + image->bits_per_pixel > 32 || image->bitmap_unit > 32 || + image->bits_per_pixel < 0 || image->bitmap_unit < 0 || (image->format != XYBitmap && image->format != XYPixmap && image->format != ZPixmap) ||