Closed Bug 620289 Opened 14 years ago Closed 14 years ago

crash [@ txXSLTNumber::createNumber] if !counterIter.hasNext()

Categories

(Core :: XSLT, defect)

defect
Not set
critical

Tracking

()

VERIFIED INVALID

People

(Reporter: timeless, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: coverity, crash)

Crash Data

48 nsresult txXSLTNumber::createNumber(Expr* aValueExpr, txPattern* aCountPattern,

84     txFormattedCounter* counter = 0;
85     while ((value = NS_PTR_TO_INT32(valueIter.previous()))) {
86         if (counterIter.hasNext()) {
87             counter = (txFormattedCounter*)counterIter.next();
88         }
89 
90         if (!first) {
91             aResult.Append(counter->mSeparator);
92         }
93 
94         counter->appendNumber(value, aResult);
95         first = MB_FALSE;
96     }
That would only happens if there are no counters, no? In which case we should have bailed earlier.

Please reopen if I'm reading the code wrong.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Crash Signature: [@ txXSLTNumber::createNumber]
You need to log in before you can comment on or make changes to this bug.