Skip to content

CID 1512733: Using invalid iterator #10218

@maskit

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      }

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions