JeevanJames / Id3

Library to read, modify and write ID3 & Lyrics3 tags in MP3 files. Provides an extensible framework for retrieving ID3 information from online services.
Apache License 2.0
41 stars 17 forks source link

Arithmetic operation resulted in an overflow in mp3.GetTag #66

Open iqmeta opened 1 year ago

iqmeta commented 1 year ago

image

at Id3.TextEncodingHelper.GetSplitterBytes(Id3TextEncoding encodingType) at Id3.v2.Id3V23Handler.DecodePicture(Byte[] data) at Id3.v2.Id3V23Handler.ReadTag(Stream stream, Object& additionalData) at Id3.Mp3.GetTag(Id3TagFamily family) at Program.<

$>g__readFile|0_0(String musicFile) in C:\Temp\fixMp3\Program.cs:line 9 at Program.
$(String[] args) in C:\Temp\fixMp3\Program.cs:line 35

czf commented 1 year ago

also ran into this issue. I clone the repo to see what was going on locally and just added some encoding options https://github.com/czf/Id3/pull/1/files#diff-0f7318c42a4fc66925efd21803b659ff7ada3f6193523981160d9c23ac0412af

I'm able to get past the exception and the tags I'm updating are reflected