Kaydet (Commit) 55599c4a authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity #982634 and 5 other : Intentional fallthrough in cases

Change-Id: Ie6cfcc32c1ff80dab0f9835524c89d40503f69f0
Reviewed-on: https://gerrit.libreoffice.org/4498Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst aeea32af
...@@ -703,9 +703,13 @@ static void __rtl_digest_endMD5 (DigestContextMD5 *ctx) ...@@ -703,9 +703,13 @@ static void __rtl_digest_endMD5 (DigestContextMD5 *ctx)
switch (ctx->m_nDatLen & 0x03) switch (ctx->m_nDatLen & 0x03)
{ {
case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L;
/* fallthrough */
case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L;
/* fallthrough */
case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L;
/* fallthrough */
case 3: X[i] |= ((sal_uInt32)(*p)) << 24L; case 3: X[i] |= ((sal_uInt32)(*p)) << 24L;
/* fallthrough */
} }
i += 1; i += 1;
...@@ -1154,9 +1158,13 @@ static void __rtl_digest_endSHA (DigestContextSHA *ctx) ...@@ -1154,9 +1158,13 @@ static void __rtl_digest_endSHA (DigestContextSHA *ctx)
switch (ctx->m_nDatLen & 0x03) switch (ctx->m_nDatLen & 0x03)
{ {
case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L;
/* fallthrough */
case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L;
/* fallthrough */
case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L;
/* fallthrough */
case 3: X[i] |= ((sal_uInt32)(*(p++))) << 24L; case 3: X[i] |= ((sal_uInt32)(*(p++))) << 24L;
/* fallthrough */
} }
__rtl_digest_swapLong (X, i + 1); __rtl_digest_swapLong (X, i + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment