Ticket #136: imlib2-loader_xpm-CVE-2008-5187.patch

File imlib2-loader_xpm-CVE-2008-5187.patch, 462 bytes (added by MarcusMeissner, 3 years ago)

fix for pointer arithmentic problem

  • src/modules/loaders/loader_xpm.c

     
    253253                                 return 0; 
    254254                              } 
    255255                            ptr = im->data; 
    256                             end = ptr + (sizeof(DATA32) * w * h); 
    257256                            pixels = w * h; 
     257                            end = ptr + pixels; 
    258258                         } 
    259259                       else 
    260260                         {