diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-25 00:00:32 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-25 13:54:42 +0000 |
commit | 55599c4a1ece11d840c869db44e351468786916b (patch) | |
tree | 2e6355a9c669fdede831a8256484acb785e4e8b1 /sal/rtl | |
parent | coverity : #984128 and 21 others : Uninitialized scalar field (diff) | |
download | core-55599c4a1ece11d840c869db44e351468786916b.tar.gz core-55599c4a1ece11d840c869db44e351468786916b.zip |
coverity #982634 and 5 other : Intentional fallthrough in cases
Change-Id: Ie6cfcc32c1ff80dab0f9835524c89d40503f69f0
Reviewed-on: https://gerrit.libreoffice.org/4498
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/digest.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/rtl/digest.cxx b/sal/rtl/digest.cxx index e7cd52834f77..75cf20900de0 100644 --- a/sal/rtl/digest.cxx +++ b/sal/rtl/digest.cxx @@ -703,9 +703,13 @@ static void __rtl_digest_endMD5 (DigestContextMD5 *ctx) switch (ctx->m_nDatLen & 0x03) { case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; + /* fallthrough */ case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; + /* fallthrough */ case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; + /* fallthrough */ case 3: X[i] |= ((sal_uInt32)(*p)) << 24L; + /* fallthrough */ } i += 1; @@ -1154,9 +1158,13 @@ static void __rtl_digest_endSHA (DigestContextSHA *ctx) switch (ctx->m_nDatLen & 0x03) { case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; + /* fallthrough */ case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; + /* fallthrough */ case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; + /* fallthrough */ case 3: X[i] |= ((sal_uInt32)(*(p++))) << 24L; + /* fallthrough */ } __rtl_digest_swapLong (X, i + 1); |