--------------ms050304040807030706080402 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US
Created an issue upstream [1] and included the valgrind output and propos= ed patch.
[1] https://github.com/cyrusimap/cyrus-sasl/issues/587
=C2=A0=C2=A0=C2=A0 -Stephan
On 11/28/19 4:16 PM, Howard Chu wrote:
5ddfddde do_bind: dn () SASL mech <garbage> 5ddfddde =3D=3D> sasl_bind: dn=3D"" mech=3D<garbage> datalen=3D0 =3D=3D11019=3D=3D Thread 3: =3D=3D11019=3D=3D Invalid write of size 1 =3D=3D11019=3D=3D at 0x4B9B1DB: sasl_seterror (seterror.c:247) =3D=3D11019=3D=3D by 0x4B9A18D: sasl_server_start (server.c:1418) =3D=3D11019=3D=3D by 0x26B88B: slap_sasl_bind (sasl.c:1666) =3D=3D11019=3D=3D by 0x21E130: fe_op_bind (bind.c:279) =3D=3D11019=3D=3D by 0x21DCE1: do_bind (bind.c:205) =3D=3D11019=3D=3D by 0x1F35BA: connection_operation (connection.c:11=
85)
=3D=3D11019=3D=3D by 0x1F3CE7: connection_read_thread (connection.c:=
1342)
=3D=3D11019=3D=3D by 0x35DFF9: ldap_int_thread_pool_wrapper (tpool.c=
:1048)
=3D=3D11019=3D=3D by 0x4DBE668: start_thread (pthread_create.c:479) =3D=3D11019=3D=3D by 0x4EFA322: clone (clone.S:95) =3D=3D11019=3D=3D Address 0x62032a8 is 0 bytes after a block of size 6=
00 alloc'd
=3D=3D11019=3D=3D at 0x483CFAF: realloc (in /usr/lib/x86_64-linux-gn=
u/valgrind/vgpreload_memcheck-amd64-linux.so)
=3D=3D11019=3D=3D by 0x4B930A4: _buf_alloc (common.c:2186) =3D=3D11019=3D=3D by 0x4B93299: _sasl_add_string (common.c:196) =3D=3D11019=3D=3D by 0x4B9B2D4: sasl_seterror (seterror.c:187) =3D=3D11019=3D=3D by 0x4B9A18D: sasl_server_start (server.c:1418) =3D=3D11019=3D=3D by 0x26B88B: slap_sasl_bind (sasl.c:1666) =3D=3D11019=3D=3D by 0x21E130: fe_op_bind (bind.c:279) =3D=3D11019=3D=3D by 0x21DCE1: do_bind (bind.c:205) =3D=3D11019=3D=3D by 0x1F35BA: connection_operation (connection.c:11=
85)
=3D=3D11019=3D=3D by 0x1F3CE7: connection_read_thread (connection.c:=
1342)
=3D=3D11019=3D=3D by 0x35DFF9: ldap_int_thread_pool_wrapper (tpool.c=
:1048)
=3D=3D11019=3D=3D by 0x4DBE668: start_thread (pthread_create.c:479) =3D=3D11019=3D=3D =3D=3D11019=3D=3D Invalid read of size 1 =3D=3D11019=3D=3D at 0x483DF54: strlen (in /usr/lib/x86_64-linux-gnu=
/valgrind/vgpreload_memcheck-amd64-linux.so)
=3D=3D11019=3D=3D by 0x4E53DE4: __vfprintf_internal (vfprintf-intern=
al.c:1688)
=3D=3D11019=3D=3D by 0x4E67029: __vsnprintf_internal (vsnprintf.c:11=
4)
=3D=3D11019=3D=3D by 0x3A1FFA: lutil_debug (debug.c:74) =3D=3D11019=3D=3D by 0x266FF3: slap_sasl_log (sasl.c:146) =3D=3D11019=3D=3D by 0x4B9B4CF: sasl_seterror (seterror.c:260) =3D=3D11019=3D=3D by 0x4B9A18D: sasl_server_start (server.c:1418) =3D=3D11019=3D=3D by 0x26B88B: slap_sasl_bind (sasl.c:1666) =3D=3D11019=3D=3D by 0x21E130: fe_op_bind (bind.c:279) =3D=3D11019=3D=3D by 0x21DCE1: do_bind (bind.c:205) =3D=3D11019=3D=3D by 0x1F35BA: connection_operation (connection.c:11=
85)
=3D=3D11019=3D=3D by 0x1F3CE7: connection_read_thread (connection.c:=
1342)
=3D=3D11019=3D=3D Address 0x62032a8 is 0 bytes after a block of size 6=
00 alloc'd
=3D=3D11019=3D=3D at 0x483CFAF: realloc (in /usr/lib/x86_64-linux-gn=
u/valgrind/vgpreload_memcheck-amd64-linux.so)
=3D=3D11019=3D=3D by 0x4B930A4: _buf_alloc (common.c:2186) =3D=3D11019=3D=3D by 0x4B93299: _sasl_add_string (common.c:196) =3D=3D11019=3D=3D by 0x4B9B2D4: sasl_seterror (seterror.c:187) =3D=3D11019=3D=3D by 0x4B9A18D: sasl_server_start (server.c:1418) =3D=3D11019=3D=3D by 0x26B88B: slap_sasl_bind (sasl.c:1666) =3D=3D11019=3D=3D by 0x21E130: fe_op_bind (bind.c:279) =3D=3D11019=3D=3D by 0x21DCE1: do_bind (bind.c:205) =3D=3D11019=3D=3D by 0x1F35BA: connection_operation (connection.c:11=
85)
=3D=3D11019=3D=3D by 0x1F3CE7: connection_read_thread (connection.c:=
1342)
=3D=3D11019=3D=3D by 0x35DFF9: ldap_int_thread_pool_wrapper (tpool.c=
:1048)
=3D=3D11019=3D=3D by 0x4DBE668: start_thread (pthread_create.c:479)
--------------ms050304040807030706080402 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC C5owggVLMIIEM6ADAgECAhBcqlOYsUipXhgfVtj/CAUVMA0GCSqGSIb3DQEBCwUAMIGCMQsw CQYDVQQGEwJJVDEPMA0GA1UECAwGTWlsYW5vMQ8wDQYDVQQHDAZNaWxhbm8xIzAhBgNVBAoM GkFjdGFsaXMgUy5wLkEuLzAzMzU4NTIwOTY3MSwwKgYDVQQDDCNBY3RhbGlzIENsaWVudCBB dXRoZW50aWNhdGlvbiBDQSBHMTAeFw0xOTA1MjQwODA3MTdaFw0yMDA1MjQwODA3MTdaMBwx GjAYBgNVBAMMEXN0ZXBoYW5Ac3JsYWJzLmRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB CgKCAQEAmniYbaUHSdjBF3/m+2PVN14GEGxOSwHtd8WxH9mUXKEIW4XuImwNz8AoGfFOHc4D A1Tc/an6lONwAeBgj541N7aKSTxRphKnrJrpJarbUR2FM7u7Km7btUTBT9mm6OmympB+vWKa G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