https://bugs.openldap.org/show_bug.cgi?id=10438

          Issue ID: 10438
           Summary: Potential Dereference of NULL in ber_bvreplace_x
           Product: OpenLDAP
           Version: 2.6.12
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Return value of a function `ber_memrealloc_x` is dereferenced at
[memory.c:711](https://git.openldap.org/openldap/openldap/-/blob/master/libraries/liblber/memory.c#L711)
withouth checking for NULL, but it is usually checked for this function. Notice
that `ber_memrealloc_x()` might return NULL when `realloc()` fails. PLease
consider adding a NULL check.

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

Reply via email to