Branch: Tag:

1998-04-16

1998-04-16 23:00:23 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

image_too_big bugfix (check bytes io pixels)

Rev: src/modules/Image/image.c:1.101
Rev: src/modules/Image/testsuite.in:1.9
Rev: src/modules/Image/testsuite.in.in:1.2

40:      #test Image.image() too big    int x=1; while ((x<<1)>0) x=(x<<1)+1; -  if (!catch { Image.image(x,2); } || -  !catch { Image.image(x/32768,32769); }) fail("permitted"); +  if (!catch { Image.image(x,2); }) fail(x+"x2 permitted"); +  if (!catch { Image.image(x/32768,65537); }) fail((x/32768)+"x65537 permitted"); +  if (!catch { Image.image(x/(32768*3),65537); }) fail((x/(32768*3))+"x65537 permitted");    ok();      #test Image.image() color