regex tests that hang [PLACEHOLDER]
Bug #1070533 reported by
Sorin Marian Nasoi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Triaged
|
Critical
|
Paul J. Lucas |
Bug Description
The following test cases hang:
"re00975"
matches('22a3', '^(\d*){2,}?a\1$')
Should return false
"re00976"
matches('22a22z', '^(\d*){2,}?a\1z$')
Should return a xs:boolean
"re00976a"
matches('22a22', '^(\d*){2,}?a\1z$')
Should return false
Related branches
tags: |
added: fots-seg-fault removed: fots |
Changed in zorba: | |
importance: | Undecided → Critical |
milestone: | none → 2.8 |
Changed in zorba: | |
milestone: | none → 2.9 |
summary: |
- FOTS: regex tests that hang + regex tests that hang |
tags: | added: fots |
tags: |
added: segfault removed: fots-seg-fault |
Changed in zorba: | |
status: | In Progress → Triaged |
summary: |
- regex tests that hang + regex tests that hang [PLACEHOLDER] |
tags: |
added: placeholder removed: segfault |
To post a comment you must log in.
This is a bug in ICU. For example, this function hangs for the same reason:
bool f() {
UnicodeString p( "(2*){2,}?a2\\z" );
UErrorCode status = U_ZERO_ERROR;
RegexMatcher m( p, 0, status );
assert( U_SUCCESS( status ) );
UnicodeString s( "2a3" );
m.reset( s );
return m.find() != 0;
}