Debugger: Fix problem in ArrayValueNode.
- The requested child indices weren't being correctly capped to the supported lower and upper bound.
This commit is contained in:
@@ -137,13 +137,13 @@ AbstractArrayValueNode::CreateChildrenInRange(int32 lowIndex,
|
|||||||
fLowerBound = lowerBound;
|
fLowerBound = lowerBound;
|
||||||
fUpperBound = upperBound;
|
fUpperBound = upperBound;
|
||||||
fBoundsInitialized = true;
|
fBoundsInitialized = true;
|
||||||
} else {
|
|
||||||
if (lowIndex < fLowerBound)
|
|
||||||
fLowerBound = lowIndex;
|
|
||||||
if (highIndex > fUpperBound)
|
|
||||||
fUpperBound = highIndex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lowIndex < fLowerBound)
|
||||||
|
lowIndex = fLowerBound;
|
||||||
|
if (highIndex > fUpperBound)
|
||||||
|
highIndex = fUpperBound;
|
||||||
|
|
||||||
// create children for the array elements
|
// create children for the array elements
|
||||||
for (int32 i = lowIndex; i <= highIndex; i++) {
|
for (int32 i = lowIndex; i <= highIndex; i++) {
|
||||||
BString name(Name());
|
BString name(Name());
|
||||||
|
|||||||
Reference in New Issue
Block a user