https://issues.apache.org/ooo/show_bug.cgi?id=121976

            Bug ID: 121976
        Issue Type: DEFECT
           Summary: Inconsistent use of STRING_NOTFOUND with indexOf
    Classification: Application
           Product: Writer
           Version: AOO 3.4.1
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: minor
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to