Red Hat Bugzilla – Bug 197802
Crashes when port number is too high
Last modified: 2015-01-07 19:13:29 EST
1. Install openldap-servers and dependencies
2. Run slapd -h ldap://:65536
3. Segmentation fault
Any port number higher than 65535 will crash.
Possible patch from Keiichi Mori <email@example.com> attached
Created attachment 132001 [details]
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
QE ack for 4.5.
I've reworked the patch to return an error rather than silently accepting bad
input. Note that this does not fix the vast majority of places where slapd
silently accepts bad input, just this one.
Although this bugzilla was approved for RHEL 4.5, we were unable
to resolve it in time to be included in the release. Therefore
it is now proposed for RHEL 4.6.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.