testdriver doesn't handler Iterator returning false

Bug #1103246 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Incomplete
Medium
Paul J. Lucas

Bug Description

In testdriver_common.cpp, line 437, there is:

  lIter->next(lDoc);

This is wrong since it doesn't check the return value of next in case it's false. I don't know what it should do for false, but it definitely shouldn't attempt to use lDoc.

Tags: testsystem
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

FYI: This was a contributing cause to my libxml2 error troubles.

Changed in zorba:
milestone: none → 2.9
tags: added: testsystem
Changed in zorba:
milestone: 2.9 → 3.0
Revision history for this message
Chris Hillery (ceejatec) wrote :

Paul - if possible, give me some more information about how this caused trouble, preferably with a way to reproduce bad behaviour. If it's simple code-cleanliness then I need to lower the priority.

Changed in zorba:
assignee: Chris Hillery (ceejatec) → Paul J. Lucas (paul-lucas)
status: New → Incomplete
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

As I mentioned in my first note, it's a real problem. I don't have an example handy, but I would guess that you provide some invalid XML.

Revision history for this message
Chris Hillery (ceejatec) wrote :

Your first note just says that it caused problems, not what those problems were. I don't really know this code either and I don't have time to try and invent a test case. For now I'm removing the 3.0 milestone and lowering the priority, but leaving it assigned to you as Incomplete.

Changed in zorba:
milestone: 3.0 → none
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.