summaryrefslogtreecommitdiff
path: root/imlib/imlib-1.9.15-bpp16-CVE-2007-3568.patch
blob: f9e4ab98918ebcec80b38b273410deabce55b420 (plain)
    1 --- imlib-1.9.15.orig/Imlib/load.c	2007-08-13 23:06:20.000000000 -0300
    2 +++ imlib-1.9.15/Imlib/load.c	2007-08-13 23:06:51.000000000 -0300
    3 @@ -645,7 +645,7 @@
    4    planes = (int)word;
    5    fread(&word, 2, 1, file);
    6    bpp = (int)word;
    7 -  if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp != 24 && bpp != 32)
    8 +  if (bpp != 1 && bpp != 4 && bpp != 8 && bpp != 16 && bpp != 24 && bpp != 32)
    9      {
   10        fprintf(stderr, "IMLIB ERROR: unknown bitdepth in file\n");
   11        return NULL;

Generated by cgit