Menu

#2 pointer error while matching history

open
None
8
2001-07-30
2001-07-30
No

in class CHistoryMatching:
when using the resolver to match some found instances
of the same template: if it's neccessary to delete
more than one history, the deletion loop may produce
an erase on a bad pointer (due to pointers to inner
structure of the history vector!!!)

historylist
p1-> a
p2-> b

if the history list is implemented using a vector, and
is erased first, p2 is definetly invalid!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.