mirror of https://github.com/dsoprea/go-exif.git
Only add new tags to the queue if the offset is greater than the current, fixing infinite loop
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 there's another IFD in the chain.
|
||||||
if nextIfdOffset != 0 {
|
if nextIfdOffset > offset {
|
||||||
iiSibling := ii.NewSibling(ii.Index() + 1)
|
iiSibling := ii.NewSibling(ii.Index() + 1)
|
||||||
|
|
||||||
// Allow the next link to know what the previous link was.
|
// Allow the next link to know what the previous link was.
|
||||||
|
|
Loading…
Reference in New Issue