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>