Issues

Issue #84 new

reading tga file cause segfault

Anonymous avatarAnonymous 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 (2)

  1. Chris Reuter

    This happens to me as well. I'm attaching a program+image that reproduces the problem under Linux.

    A quick look seems to indicate it's a double free but don't quote me on that.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.