Exiv2 aborted (crashed) with "Error in `exiv2': free(): invalid next size (fast)"
commaneline: exiv2 -v input_file.swf
File 1/1: input_file.exi
- Error in `exiv2': free(): invalid next size (fast): 0x0000000000635140 ***
I searched the previous issues and found that the same bug was reported in earlier version, but was "patched" subsequently. I think it is still there! I have uploaded the input file that caused the crash.
Updated by Robin Mills almost 4 years ago
- File 1338.png 1338.png added
- Category set to image format
- Status changed from New to Closed
- Assignee set to Robin Mills
- Target version set to 0.27
- % Done changed from 0 to 100
- Estimated time set to 1.00 h
This has been fixed on 'master' on http://github.com/exiv2/exiv2
572 rmills@rmillsmbp:~/Downloads $ exiv2 exiv2-2018-02-16T15-41-19.838585.exi Exiv2 exception in print action for file exiv2-2018-02-16T15-41-19.838585.exi: invalid memory allocation request 573 rmills@rmillsmbp:~/Downloads $There is something "corrupt" about your file. When I try to open it with Preview on the Mac, I see:
The exiv2 messages "invalid memory allocation request" normally indicates that your file has data which indicates that it would like to allocate more memory than the size of your file. I could investigate further with the debugger to know exactly why this has occurred. The image claims to be 160x160 pixels with 8 bytes per RGB channel (76kBytes), however your file is only 5k. This file is very suspicious.
574 rmills@rmillsmbp:~/Downloads $ exiv2 -pR exiv2-2018-02-16T15-41-19.838585.exi STRUCTURE OF TIFF FILE (MM): exiv2-2018-02-16T15-41-19.838585.exi address | tag | type | count | offset | value 4618 | 0x00fe NewSubfileType | LONG | 1 | | 0 4630 | 0x0100 ImageWidth | LONG | 1 | | 160 4642 | 0x0101 ImageLength | LONG | 1 | | 160 4654 | 0x0102 BitsPerSample | SHORT | 3 | 4934 | 8 8 8 4666 | 0x0103 Compression | SHORT | 1 | | 6 4678 | 0x0106 PhotometricInterpretation | SHORT | 1 | | 6 4690 | 0x0111 StripOffsets | LONG | 1 | | 610 4702 | 0x0115 SamplesPerPixel | SHORT | 1 | | 3 4714 | 0x0116 RowsPerStrip | LONG | 1 | | 160 4726 | 0x0117 StripByteCounts | LONG | 1 | | 3447 4738 | 0x011a XResolution | RATIONAL | 1 | 4940 | 200/2 Exiv2 exception in print action for file exiv2-2018-02-16T15-41-19.838585.exi: invalid memory allocation request 575 rmills@rmillsmbp:~/Downloads $ ls -alt exiv2-2018-02-16T15-41-19.838585.exi -rw-r--r--@ 1 rmills staff 5052 23 Feb 14:10 exiv2-2018-02-16T15-41-19.838585.exi 576 rmills@rmillsmbp:~/Downloads $