Skip to content

CID 1512733: Using invalid iterator #10218

Description

@maskit
193      if (auto search = Update_Type_To_String_Message.find(updatedRec.updateType);
194          search != std::end(Update_Type_To_String_Message)) {
   	
CID 1512733 (#1 of 1): Using invalid iterator (INVALIDATE_ITERATOR)
5. deref_iterator: Dereferencing iterator search though it is already past the end of its container.
195        std::cout << swoc::bwprint(text, search->second, updatedRec.recName) << '\n';
196      } else {
197        std::cout << "Oops we don't know how to handle the update status for '" << updatedRec.recName << "' ["
198                  << updatedRec.updateType << "]\n";
199      }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions