Skip to content

Commit 1e8938d

Browse files
Update valueflow.cpp
1 parent 519958a commit 1e8938d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/valueflow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6221,6 +6221,8 @@ bool ValueFlow::isContainerSizeChanged(const Token* tok, int indirect, const Set
62216221
return true;
62226222
if (astIsLHS(tok) && Token::simpleMatch(tok->astParent(), "["))
62236223
return tok->valueType()->container->stdAssociativeLike;
6224+
if (Token::simpleMatch(tok->astParent(), "*") && indirect > 0)
6225+
return isContainerSizeChanged(tok->astParent(), indirect - 1, settings, depth + 1);
62246226
const Library::Container::Action action = astContainerAction(tok, settings.library);
62256227
switch (action) {
62266228
case Library::Container::Action::RESIZE:

0 commit comments

Comments
 (0)