pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: xcf.c,v 1.54 2008/01/22 13:16:45 grubba Exp $ + || $Id: xcf.c,v 1.55 2008/01/22 21:18:57 grubba Exp $   */      #include "global.h"   #include "image_machine.h"      #include "pike_macros.h"   #include "object.h"   #include "module_support.h"   #include "interpret.h"   #include "object.h"
pike.git/src/modules/Image/encodings/xcf.c:1218:    struct object *to = tiles->item[l].u.object;    struct substring *tile_ss = SS(to);    struct buffer tile;    char *df = 0;    unsigned int eheight, ewidth;    unsigned char *s;       if(!tile_ss)    continue;    +  tile.s = tile_ss->s;    tile.str = (unsigned char *)(tile_ss->s->str + tile_ss->offset);    tile.len = tile_ss->len;       ewidth = MINIMUM(TILE_WIDTH, (rxs-x));    eheight = MINIMUM(TILE_HEIGHT, (rys-y));       if( (double)ewidth * eheight * bpp > INT_MAX )    Pike_error("Insanely large tiles not supported\n");    if(rle)    {