No that doesn't solve the problem. Before incrementing the iterator, it
still points to the "o" of "hello" which is OK. Only after incrementing
it on the "o", the iterator points to the end and Windows doesn't allow
for calling the *operator on it anymore.
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
test/unit/string_test crashes in Debug on Windows
Status in Zorba - The XQuery Processor:
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/utf8_util_base.h: 379, when oi_ is
incremented beyond the end of string, dereferencing the last \0 fires an assert
I think you should check for end() before dereferencing the iterator.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~zorba-coders
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp