From 743dcef84fe8b262e87650b6d6e9b4bfea90f45f Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 12 Aug 2024 18:58:16 +0200 Subject: [PATCH] Update valueflow.cpp --- lib/valueflow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 72da844aa87..dffd3ba91ec 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -6574,6 +6574,10 @@ struct ContainerExpressionAnalyzer : ExpressionAnalyzer { n = -1; break; case Library::Container::Action::APPEND: { + if (!container->stdStringLike) { + val->setPossible(); // TODO: use appendee's size + break; + } std::vector args = getArguments(tok->astParent()->tokAt(2)); if (args.size() == 1) // TODO: handle overloads n = valueFlowGetStrLength(tok->astParent()->tokAt(3));