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.