Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-148

Indexed search causes program crash

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.91
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • Environment:

      Discovered in Windows-32bit, untested in others.

      Description

      Doing an indexed search for certain Unicode characters causes a program crash. In these, and probably other cases, the Clucene QueryParser::parse call returns null. This causes an unhandled exception because the return value is not currently being tested. A simple fix would be to test for null in swmodule.cpp after line 511 (q = QueryParser::parse...) and do nothing if its null.

      For example, doing an indexed search for "←" (without the quotes) causes a crash.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johnaustin John Austin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: