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.
https://bugs.launchpad.net/bugs/867271

Title:
  test/unit/string_test crashes in Debug on Windows

Status in Zorba - The XQuery Processor:
  New

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/utf8_util_base.h: 379, when oi_ is 
incremented beyond the end of string, dereferencing the last \0 fires an assert 
in Windows. 
  I think you should check for end() before dereferencing the iterator.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867271/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to