php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5796 ldap_get_values_len fails when a value contains NULL characters
Submitted: 2000-07-26 16:26 UTC Modified: 2000-07-28 02:08 UTC
From: alexel at dr15 dot cnrs dot fr Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alexel at dr15 dot cnrs dot fr
New email:
PHP Version: OS:

 

 [2000-07-26 16:26 UTC] alexel at dr15 dot cnrs dot fr
In fact it seems that ldap_get_values_len has the same behaviour as ldap_get_values.
In order to fix that i corrected the funtion :
	ldap_get_values_len in file php-4.0.1/ext/ldap/ldap.c

I replaced  the line :

add_next_index_string(return_value, ldap_value_len[i]->bv_val, 1);

with 
	add_next_index_stringl(return_value,
                                        ldap_value_len[i]->bv_val,
                                        ldap_value_len[i]->bv_len, 1);
Then it seems to be OK

Michel Alexeline


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-28 02:08 UTC] sniper@php.net
Fixed in CVS. Thanks!

--Jani

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 08:03:35 2021 UTC