binaryanalysis-ng icon indicating copy to clipboard operation
binaryanalysis-ng copied to clipboard

name counter does not work correctly for concatenated files having the "right" extension

Open armijnhemel opened this issue 3 years ago • 2 comments

Example: two GIF files concatenated together:

test.gif-0x00000000-gif-1/unpacked.gif
test.gif-0x000351b5-gif-1/unpacked.gif

The counter should have been increased.

armijnhemel avatar Mar 05 '21 15:03 armijnhemel

If I rename the file 'test.gif' to 'test.gaf' it works correctly:

test.gaf-0x00000000-gif-1/unpacked.gif
test.gaf-0x000351b5-gif-2/unpacked.gif

armijnhemel avatar Mar 05 '21 16:03 armijnhemel

Added test_double_gif_file_increases_name_counter in test_scan_job.py to test for this.

timhemel avatar Mar 13 '21 16:03 timhemel