test/unit/string_test crashes in Debug on Windows
Bug #867271 reported by
Daniel Turcanu
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Paul J. Lucas |
Bug Description
The Unit Test string_test is crashing on Windows in debug mode.
I am testing on no-unicode branch, for both unicode and ascii modes. It crashes for both modes.
My investigation leads to src/util/
I think you should check for end() before dereferencing the iterator.
tags: | removed: core-runtime |
Changed in zorba: | |
assignee: | Daniel Turcanu (danielturcanu) → Paul J. Lucas (paul-lucas) |
To post a comment you must log in.
Unfortunately, I don't have access to "end()" to compare it to. The only thing I can think of is to do:
if ( *oi ) while ( !is_start_byte( *++oi_ ) ) ;
Can you try that out and let me know? Thanks.