Zorba crashes with getReference

Bug #869024 reported by Federico Cavalieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Federico Cavalieri

Bug Description

The following query sometimes causes Zorba to crash:

import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";
import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";
import module namespace ref = "http://www.zorba-xquery.com/modules/node-reference";

ddl:create(xs:QName("ddl:coll"));
dml:insert-nodes-last(xs:QName("ddl:coll"),element {"bb"}{text {"aa"}});
ref:node-reference(dml:collection(xs:QName("ddl:coll")))

This is caused by the following cast:
const OrdPathNode* n = static_cast<const OrdPathNode*>(node);
which is not correct when node is a TextNode

Changed in zorba:
assignee: nobody → Federico Cavalieri (fcavalieri)
importance: Undecided → Medium
Changed in zorba:
status: New → Fix Released
Changed in zorba:
milestone: none → 2.1
status: Fix Released → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
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.