1. libgd
  2. Untitled project
  3. gd-libgd
  4. Issues

Issues

Issue #84 resolved

reading tga file cause segfault

Anonymous created an issue

Program received signal SIGSEGV, Segmentation fault. 0x004085b9 in read_image_tga (ctx=ctx@entry=0xce5020, tga=tga@entry=0xce5060) at gd_tga.c:253 253 tga->bitmap[buffer_caret] = (int) conversion_buffer[buffer_caret]; (gdb) bt

0 0x004085b9 in read_image_tga (ctx=ctx@entry=0xce5020, tga=tga@entry=0xce5060) at gd_tga.c:253

1 0x004086b7 in gdImageCreateFromTgaCtx@4 (ctx=ctx@entry=0xce5020) at gd_tga.c:74

2 0x00408894 in gdImageCreateFromTga@4 (fp=fp@entry=0x77c2fce0) at gd_tga.c:25

3 0x0050f328 in main (argc=<optimized out>, argv=0xce3e88) at repng2jpeg.c:66

(gdb) p buffer_caret $1 = 152568

Comments (4)

  1. Log in to comment