From 388cedf724d3b4132837e258871d56d94b0aedc2 Mon Sep 17 00:00:00 2001 From: Aditya Addepalli Date: Sat, 28 Oct 2023 15:56:33 -0400 Subject: [PATCH] Add checks to pointer arguments in m_bmqtool_inpututil Signed-Off-By: Aditya Addepalli --- src/applications/bmqtool/m_bmqtool_inpututil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/bmqtool/m_bmqtool_inpututil.cpp b/src/applications/bmqtool/m_bmqtool_inpututil.cpp index b870b93245..c36e8d3d33 100644 --- a/src/applications/bmqtool/m_bmqtool_inpututil.cpp +++ b/src/applications/bmqtool/m_bmqtool_inpututil.cpp @@ -52,6 +52,9 @@ void InputUtil::preprocessInput(bsl::string* verb, const bsl::string& input, bsl::unordered_set* keys) { + BSLS_ASSERT_SAFE(verb); + BSLS_ASSERT_SAFE(output); + BSLS_ASSERT_SAFE(keys); mwcu::MemOutStream oss; bool isKey = true, isFirstKey = true, isVerb = true;