From d7fdecd2374114124f192b3bfc84d2d294bb45ab Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 1 Jul 2017 10:54:17 +0300 Subject: 9154 libldap5: this statement may fall through Reviewed by: Sebastian Wiedenroth Reviewed by: Jason King Approved by: Richard Lowe --- usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c') diff --git a/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c b/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c index 65bc85a378..b99a43e448 100644 --- a/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c +++ b/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c @@ -1,5 +1,3 @@ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file @@ -51,10 +49,15 @@ ldap_utf8next (char* s) switch (UTF8len [(*next >> 2) & 0x3F]) { case 0: /* erroneous: s points to the middle of a character. */ case 6: if ((*++next & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 5: if ((*++next & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 4: if ((*++next & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 3: if ((*++next & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 2: if ((*++next & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 1: ++next; } return (char*) next; @@ -88,10 +91,15 @@ ldap_utf8copy (char* dst, const char* src) switch (UTF8len [(*s >> 2) & 0x3F]) { case 0: /* erroneous: s points to the middle of a character. */ case 6: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 5: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 4: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 3: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 2: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break; + /* FALLTHROUGH */ case 1: *dst = *s++; } return s - (const unsigned char*)src; -- cgit v1.2.3