Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/openldap/dist/libraries/libldap libldap: fix un...
details: https://anonhg.NetBSD.org/src/rev/6927139f836c
branches: trunk
changeset: 985759:6927139f836c
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Sep 06 17:34:33 2021 +0000
description:
libldap: fix undefined behavior in ldap_int_tls_connect
The function isdigit must not be called with 'char' as argument.
https://bugs.openldap.org/show_bug.cgi?id=9668
diffstat:
external/bsd/openldap/dist/libraries/libldap/tls2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 13bf4cddad0f -r 6927139f836c external/bsd/openldap/dist/libraries/libldap/tls2.c
--- a/external/bsd/openldap/dist/libraries/libldap/tls2.c Mon Sep 06 17:19:52 2021 +0000
+++ b/external/bsd/openldap/dist/libraries/libldap/tls2.c Mon Sep 06 17:34:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tls2.c,v 1.3 2021/08/14 16:14:56 christos Exp $ */
+/* $NetBSD: tls2.c,v 1.4 2021/09/06 17:34:33 rillig Exp $ */
/* tls.c - Handle tls/ssl. */
/* $OpenLDAP$ */
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tls2.c,v 1.3 2021/08/14 16:14:56 christos Exp $");
+__RCSID("$NetBSD: tls2.c,v 1.4 2021/09/06 17:34:33 rillig Exp $");
#include "portable.h"
#include "ldap_config.h"
@@ -396,7 +396,7 @@
break;
if ( *c == '.' )
continue;
- if ( !isdigit( *c )) {
+ if ( !isdigit( (unsigned char)*c )) {
numeric = 0;
break;
}
Home |
Main Index |
Thread Index |
Old Index