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 /include/pam_authenticate.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 'include/pam_authenticate.hpp')
-rw-r--r-- | include/pam_authenticate.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp index 0ce0bb4a84..1459ea6112 100644 --- a/include/pam_authenticate.hpp +++ b/include/pam_authenticate.hpp @@ -24,6 +24,7 @@ inline int pamFunctionConversation(int numMsg, const struct pam_message** msg, for (int i = 0; i < numMsg; ++i) { /* Ignore all PAM messages except prompting for hidden input */ + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) if (msg[i]->msg_style != PAM_PROMPT_ECHO_OFF) { continue; @@ -66,6 +67,7 @@ inline int pamFunctionConversation(int numMsg, const struct pam_message** msg, // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) *resp = reinterpret_cast<pam_response*>(ptr); + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) resp[i]->resp = pass; return PAM_SUCCESS; |