Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1554

AccessViolation in StringIndex::find_all_fulltext

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      I'm getting a can't increment vector iterator past end exception when doing an FTS query over some book data. The offending code is here:

      https://github.com/realm/realm-core/blob/063927de66f79a0afffbbe36c0bb14d27deba8f2/src/realm/index_string.cpp#L1223-L1226

      Looking at it, it indeed doesn't seem correct as we're erasing an element from the vector and then incrementing the iterator, which can clearly push it past the end of the vector once we erase the last element.

            Assignee:
            james.stone@mongodb.com James Stone
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: