mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
convertAnchPrefixToBounds: check size of delay_adj
Avoid subtracting delay_adj from a smaller max bound.
This commit is contained in:
parent
326abeb3ee
commit
db4176c13e
@ -1098,6 +1098,11 @@ void convertAnchPrefixToBounds(RoseBuildImpl &tbi) {
|
|||||||
DEBUG_PRINTF("castle has repeat %s\n", pr.bounds.str().c_str());
|
DEBUG_PRINTF("castle has repeat %s\n", pr.bounds.str().c_str());
|
||||||
DEBUG_PRINTF("delay adj %u\n", (u32)delay_adj);
|
DEBUG_PRINTF("delay adj %u\n", (u32)delay_adj);
|
||||||
|
|
||||||
|
if (delay_adj >= pr.bounds.max) {
|
||||||
|
DEBUG_PRINTF("delay adj too large\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
DepthMinMax bounds(pr.bounds); // copy
|
DepthMinMax bounds(pr.bounds); // copy
|
||||||
if (delay_adj > bounds.min) {
|
if (delay_adj > bounds.min) {
|
||||||
bounds.min = 0;
|
bounds.min = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user