diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 20:28:45 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:00:37 +0300 |
commit | ca45aa3c416e55027b8d17078bac6493e81d564f (patch) | |
tree | 6b23f35cfba77f66557e78230b85684cef0f5c04 /http/http_connection.hpp | |
parent | 46ff87bade273c75f71f940c5770d30e7a29595b (diff) | |
download | bmcweb-ca45aa3c416e55027b8d17078bac6493e81d564f.tar.xz |
Enable checks for pointer arithmetic
Quite a few places we've disobeyed this rule, so simply ignore them for
now to avoid new issues popping up.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I3e518a8e8742279afb3ad1a9dad54006ed109fb1
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r-- | http/http_connection.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp index 840f2b6ceb..ad6855f434 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -182,11 +182,13 @@ class Connection : for (int i = 0; i < usage->length; i++) { - if (KU_DIGITAL_SIGNATURE & usage->data[i]) + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) + unsigned char usageChar = usage->data[i]; + if (KU_DIGITAL_SIGNATURE & usageChar) { isKeyUsageDigitalSignature = true; } - if (KU_KEY_AGREEMENT & usage->data[i]) + if (KU_KEY_AGREEMENT & usageChar) { isKeyUsageKeyAgreement = true; } |