Fix rendering causing stack overflow


With a deeply nested svg document, the process will run out of stack
if the stack is limited. To fix this, a limit to the number of nested
element is used to stop rendering if the current nested level is
exceeding the max limit.

Task-number: QTBUG-145916
Pick-to: 6.11
Change-Id: I2047aa3d64332b47a7c2819bcc3219eabbc00891
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
commit16119ddc0f8a39a7131d95715c7d9c01e428819d
parent5eeab927ef2139d5fe45ec5202a4af984a2cf394
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeFri, 24 Apr 2026 05:24:28 +0000