optimize the disorder segments check
This commit is contained in:
parent
fa16a4a45d
commit
29c7048f93
|
|
@ -174,8 +174,9 @@ func (m *Maker) loadSegments() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check the order of the data segment
|
// check the order of the data segment
|
||||||
// if err := seg.RightBehind(last); err != nil {
|
if sorting {
|
||||||
if err := seg.After(last); err != nil {
|
// just keep going
|
||||||
|
} else if err := seg.After(last); err != nil {
|
||||||
// return err
|
// return err
|
||||||
// @Note: If the continuity is disrupted,
|
// @Note: If the continuity is disrupted,
|
||||||
// we will sort all these segments later.
|
// we will sort all these segments later.
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,9 @@ public class Maker {
|
||||||
throw new Exception("invalid ip segment("+version.name+" expected)");
|
throw new Exception("invalid ip segment("+version.name+" expected)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last != null && !seg.after(last)) {
|
if (sorting) {
|
||||||
|
// just keep going
|
||||||
|
} else if (last != null && !seg.after(last)) {
|
||||||
// throw new Exception("discontinuous data segment: last.eip("
|
// throw new Exception("discontinuous data segment: last.eip("
|
||||||
// + Util.ipToString(last.endIP)+")+1 != seg.sip("+ Util.ipToString(seg.startIP) + ", "+ seg.region +")");
|
// + Util.ipToString(last.endIP)+")+1 != seg.sip("+ Util.ipToString(seg.startIP) + ", "+ seg.region +")");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue