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:

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:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to