Apache OpenOffice (AOO) Bugzilla – Issue 121976
Inconsistent use of STRING_NOTFOUND with indexOf
Last modified: 2013-03-29 17:42:53 UTC
The issue was found in LibreOffice by Christina Rossmanith: IndexOf doesn't return STRING_NOTFOUND as a value. Opengroking the filter code it seems like main/filter/source/msfilter/escherex.cxx : lines 1393 and 1604 is trying to compare against STRING_NOTFOUND after calling IndexOf. Replacing STRING_NOTFOUND with (-1) would be more appropriate in this case.