Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 924494 Details for
Bug 1104243
perl-LDAP sets wrong length for function _sendmesg
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream fix ported to 0.56
perl-ldap-0.56-RT-96203-LDAP.pm-use-correct-length-for-syswrite.patch (text/plain), 1.27 KB, created by
Petr Pisar
on 2014-08-06 14:10:11 UTC
(
hide
)
Description:
Upstream fix ported to 0.56
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2014-08-06 14:10:11 UTC
Size:
1.27 KB
patch
obsolete
>From 93a1f2fd26cfef95c22530be07ca0e211f7e44d0 Mon Sep 17 00:00:00 2001 >From: Peter Marschall <peter@adpm.de> >Date: Sat, 7 Jun 2014 15:38:36 +0200 >Subject: [PATCH] RT#96203: LDAP.pm: use correct length for syswrite >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Use correct length of bytes to write with syswrite() instead of default 15000 >in _sendmesg(). > >According to the bug reporter, it may cause error in case that the function >WRITE was redefined (e.g. Authen-SASL RT#85294) and did not handle this case >properly. > >It should not change anything in Net::LDAP but help other modules not covering >all WRITE cases. > >Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com> >--- > lib/Net/LDAP.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/lib/Net/LDAP.pm b/lib/Net/LDAP.pm >index 2f873ad..6505276 100644 >--- a/lib/Net/LDAP.pm >+++ b/lib/Net/LDAP.pm >@@ -842,7 +842,8 @@ sub _sendmesg { > my $to_send = \( $mesg->pdu ); > my $offset = 0; > while ($offset < length($$to_send)) { >- my $n = syswrite($socket, substr($$to_send, $offset, 15000), 15000) >+ my $s = substr($$to_send, $offset, 15000); >+ my $n = syswrite($socket, $s, length($s)) > or return _error($ldap, $mesg, LDAP_LOCAL_ERROR, "$!"); > $offset += $n; > } >-- >1.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1104243
: 924494