Unbalanced ')' in regex seg faults
Bug #946986 reported by
Sorin Marian Nasoi
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://
declare option o:enable 'hof';
matches(
- "re00039"
Query:
xquery version '3.0';
declare namespace o = 'http://
declare option o:enable 'hof';
matches(
I have set the importance to HIGH because Zorba Seg Faults: please change if you think it's appropriate.
Related branches
lp:~paul-lucas/zorba/bug-946986
- Chris Hillery: Approve
- Paul J. Lucas: Approve
-
Diff: 62 lines (+7/-3)7 files modifiedsrc/diagnostics/diagnostic_en.xml (+1/-1)
src/diagnostics/pregenerated/dict_en.cpp (+1/-1)
src/util/regex.cpp (+1/-1)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-1.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-2.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-2.xq (+1/-0)
Changed in zorba: | |
milestone: | none → 2.5 |
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.
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.)