https://bz.apache.org/ooo/show_bug.cgi?id=126669

          Issue ID: 126669
        Issue Type: DEFECT
           Summary: Possible null pointer dereference
           Product: General
           Version: 4.1.2
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]

In file main/sal/osl/unx/profile.c at line 318 there is if-statement: 

    if ( pProfile == 0 )
    {
        pthread_mutex_unlock(&(pProfile->m_AccessLock));
#ifdef TRACE_OSL_PROFILE
        OSL_TRACE("Out osl_closeProfile [pProfile==0]\n");
#endif
        return sal_False;
    }

It seems, it is null pointer dereference.

GitHub link:
https://github.com/apache/openoffice/blob/b15c6b061f9949adfdefda7b74824254fa0867f5/main/sal/osl/unx/profile.c#L320

This defect is similar to https://bz.apache.org/ooo/show_bug.cgi?id=126635.

The possible defect found by static analyzer AppChecker.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to