https://bugs.openldap.org/show_bug.cgi?id=10309
Issue ID: 10309 Summary: Handle potential null pointers returned by ber_strdup Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: client tools Assignee: bugs@openldap.org Reporter: safecoding233@gmail.com Target Milestone: ---
Created attachment 1052 --> https://bugs.openldap.org/attachment.cgi?id=1052&action=edit fix patch
I added two null pointer checks for pointers returned by ber_strdup.
https://bugs.openldap.org/show_bug.cgi?id=10309
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |ondra@mistotebe.net Target Milestone|--- |2.5.20 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10309
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/748
https://bugs.openldap.org/show_bug.cgi?id=10309
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
• d1ca1671 by Ondřej Kuzník at 2025-03-04T19:41:59+00:00 ITS#10309 Check for strdup allocation failures
https://bugs.openldap.org/show_bug.cgi?id=10309
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• c2e1677a by Ondřej Kuzník at 2025-05-06T15:09:08+00:00 ITS#10309 Check for strdup allocation failures
• 722fe501 by Ondřej Kuzník at 2025-05-06T15:09:03+00:00 ITS#10309 Check for strdup allocation failures