awutils icon indicating copy to clipboard operation
awutils copied to clipboard

MALLOC_CHECK_=0 ./awimage img.dump

Open UMLAUTaxl opened this issue 11 years ago • 1 comments

With a freshly unpacked, not modified image I received as follows:

*** glibc detected *** ./awimage: double free or corruption (!prev): 0x0000000000bbc250 ***

After

export MALLOC_CHECK_=0

it works fine and puts out a file the same size as original. Haven't flashed so not sure. If you're interested I compiled awimage with -g again and could post the gdb and other output ...

UMLAUTaxl avatar May 25 '13 07:05 UMLAUTaxl

This is a duplicate fclose of the packing config file. One is inside the parser, one in the function calling it, that also opens the file. Comment either one of them and that problem will go away.

TheSeven avatar Nov 26 '13 20:11 TheSeven