esmondb / ccr-exif

Automatically exported from code.google.com/p/ccr-exif
24 stars 11 forks source link

Memory corruption on SubSecs tags processing #10

Open trpjxrdf opened 7 years ago

trpjxrdf commented 7 years ago

Happens when SubSecs tag length > 3.

In the TExifSection.GetDateTimeValue Move(SubSecsTag.Data^, S[1], Max(3, SubSecsTag.ElementCount - 1)); must be replaced by Move(SubSecsTag.Data^, S[1], Min(3, SubSecsTag.ElementCount - 1));

GabrielOnDelphi commented 1 year ago

Thanks for reporting!