https://bugs.openldap.org/show_bug.cgi?id=9860
Issue ID: 9860 Summary: ldapsearch memory leaks Product: OpenLDAP Version: 2.5.12 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: client tools Assignee: bugs@openldap.org Reporter: hamano@osstech.co.jp Target Milestone: ---
When using page control, The control value leaks with each goto getNextPage; loop due to `i` and `nctrl` step back.
``` 1114 getNextPage: ... 1124 save_nctrls = nctrls; 1125 i = nctrls; ```
``` 1284 if ( ldap_create_page_control_value( ld, 1285 pageSize, &pr_cookie, &c[i].ldctl_value ) ) ```
``` 1445 /* step back to the original number of controls, so that 1446 * those set while parsing args are preserved */ 1447 nctrls = save_nctrls; ```
``` 1612 goto getNextPage; ```
https://bugs.openldap.org/show_bug.cgi?id=9860
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |2.5.14
https://bugs.openldap.org/show_bug.cgi?id=9860
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/550
https://bugs.openldap.org/show_bug.cgi?id=9860
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Status|IN_PROGRESS |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- HEAD: • f60f05b7 by Howard Chu at 2022-07-23T22:34:06+01:00 ITS#9860 ldapsearch: fix control memleaks
RE26:
• bddf4976 by Howard Chu at 2022-08-24T15:47:31+00:00 ITS#9860 ldapsearch: fix control memleaks
RE25:
• a005f74f by Howard Chu at 2022-08-24T15:49:47+00:00 ITS#9860 ldapsearch: fix control memleaks
https://bugs.openldap.org/show_bug.cgi?id=9860
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED