Closed hgourvest closed 8 months ago
in this jpeg file, there's a section with comment text (FF FE) of size 3 bytes, unfortunately, it seems that the minimum size of a section is 4 bytes, so the next iteration moves the cursor to the wrong place.
it seems that the minimum size of a section is 4 bytes
This is not true.
Em...I looked into it and found something intresting.
You can insert any bytes between sections (except FF
). It won't damage jpg. Here I insert 7 bytes 0A
.
Since every section start with FF
, so the correct way may be skipping the garbge bytes.
What's your suggestion?
And I looked into 010 editor's template code. It also treat these bytes as garbge and just skip them.
I'll fix this soon.
Fix in https://github.com/xiaozhuai/imageinfo/commit/8f94e1f68d6b40a535090aac696be7a43cc1df61 Thanks for reporting this.
@hgourvest Since this issue is solved, I'm going to close it as completed. Feel free to reopen if you'd like to discuss further.
Thank you very much for the quick fix. I appreciate your work.