Changeset 226 for trunk/Lucide


Ignore:
Timestamp:
Aug 7, 2007, 2:27:38 PM (14 years ago)
Author:
Eugene Romanenko
Message:

JPG plugin: fix crash on some pic sizes

Location:
trunk/Lucide/SOURCE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/makefile

    r223 r226  
    11.autodepend
    22
    3 TEST=0
     3TEST=1
    44VERSION=1.02
    55
  • trunk/Lucide/SOURCE/plugins/lujpeg/lujpeg.cpp

    r221 r226  
    193193        jpeg_read_scanlines( &cinfo, buffer, 1 );
    194194        dst = pixbuf_data + ( i * pixbuf_rowstride );
    195         for ( j = 0; j < pixbuf_rowstride; j += bpp )
     195        int len = pixbuf_width * bpp;
     196        for ( j = 0; j < len; j += bpp )
    196197        {
    197198            dst[ j ] = buffer[0][ j + 2 ];
Note: See TracChangeset for help on using the changeset viewer.