Add recursion depth limit for binary data decoding


QOpcUaBinaryDataEncoding::decode() and the code generated by the
qopcuaxmldatatypes2cpp tool had no recursion limit and could run
until a stack overflow occurs if they were given specially prepared
nested data.

This issue was introduced in 6.7 with the addition of decoding for
Variant, DataValue and DiagnosticInfo.

This change adds a depth limit of 500 to scalar decoding methods that
can recurse. The implementation in QOpcUaBinaryDataEncoding is a
temporary workaround for Qt 6 due to binary compatibility which should
be replaced for Qt 7.

Task-number: QTBUG-148802
Pick-to: 6.12 6.11 6.8
Change-Id: I2743ad2f7377d0509277317517c1f7382b117354
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
commitd875af28e7239327994b55b575c2d33f7c0e39b4
parent72ea9b809582796f43da808c91f91f2c2369f60e
authorJannis Völker <jannis.voelker@basyskom.com>
committerJannis Völker <jannis.voelker@basyskom.com>
commit timeWed, 12 Aug 2026 07:12:17 +0000