Closed Bug 333702 Opened 18 years ago Closed 18 years ago

Null dereference in txXSLTNumber::createNumber

Categories

(Core :: XSLT, defect)

defect
Not set
critical

Tracking

()

RESOLVED INVALID

People

(Reporter: jwatt, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity, crash)

If |counterIter.hasNext()| evaluates to false, we'll crash when counter is dereferenced.
How can hasNext be false there in the first iteration (counter == 0), given that getCounters always puts at least one counter in counters if it returns failure?
(In reply to comment #1)
s/failure/success/
It can't. Sorry.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.