aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4jsonobject.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-08-29 14:42:02 +0200
committerUlf Hermann <ulf.hermann@qt.io>2024-09-03 11:53:52 +0200
commit4a314c7573af9d0ca9283bce7ebdab63f6066ec1 (patch)
tree19d8ba8ea0e3de4fdb488758aefd66b6086e9616 /src/qml/jsruntime/qv4jsonobject.cpp
parent67ab9e5a1102472ea734a35ef2906e2ec4545ce0 (diff)
QtQml: Explicitly ignore return value of checkStackLimits()
We usually have to do some handling in this case, but here we return anyway. Coverity-Id: 468063 Change-Id: Ie2ced36322a28d0c68c6c8618eb4f7890ae0f7ab Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4jsonobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp
index d78d09113a..685276ba23 100644
--- a/src/qml/jsruntime/qv4jsonobject.cpp
+++ b/src/qml/jsruntime/qv4jsonobject.cpp
@@ -623,7 +623,8 @@ public:
QStringLiteral("Cannot convert circular structure to JSON"));
}
- stringify->v4->checkStackLimits();
+ const bool hasOverflow = stringify->v4->checkStackLimits();
+ Q_UNUSED(hasOverflow); // No handling needed. Exception has been thrown already.
}
bool foundProblem() const { return m_callDepthRecorder.ee->hasException; }