mirror of
https://github.com/dsoprea/go-exif.git
synced 2025-05-31 11:41:57 +00:00
Only add new tags to the queue if the offset is greater than the current, fixing infinite loop
This commit is contained in:
parent
827ecdad3d
commit
02f29239d2
@ -1445,7 +1445,7 @@ func (ie *IfdEnumerate) Collect(rootIfdOffset uint32) (index IfdIndex, err error
|
||||
}
|
||||
|
||||
// If there's another IFD in the chain.
|
||||
if nextIfdOffset != 0 {
|
||||
if nextIfdOffset > offset {
|
||||
iiSibling := ii.NewSibling(ii.Index() + 1)
|
||||
|
||||
// Allow the next link to know what the previous link was.
|
||||
|
Loading…
x
Reference in New Issue
Block a user