Unbalanced ')' in regex seg faults

Bug #946986 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Paul J. Lucas

Bug Description

The following tests from the fn/matches.re.xml test-set result in a Segmentation Fault :
- "re00038"
Query:
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
matches('qwerty','(a))')

- "re00039"
Query:
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
matches('qwerty','ab|(d))')

I have set the importance to HIGH because Zorba Seg Faults: please change if you think it's appropriate.

Tags: fots

Related branches

Changed in zorba:
milestone: none → 2.5
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

The minimal query that causes the segfault is:

  matches('qwerty','(a))')

All the other option stuff isn't needed. (It took only a few seconds to check this as the submitter should have done.)

Changed in zorba:
status: New → Triaged
summary: - FOTS: matches tests Seg. fault
+ Unbalanced ')' in regex seg faults
Changed in zorba:
status: Triaged → 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.