summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcrashhandler.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <[email protected]>2024-11-24 13:16:43 +0100
committerAllan Sandfeld Jensen <[email protected]>2024-11-30 01:22:47 +0100
commit11dc7e1c05d83d45c5057d50560037a2da4416a8 (patch)
treed2c35de3cad915dcb186e82c54ee948ddce05bf2 /src/testlib/qtestcrashhandler.cpp
parent3a825036a3cb2e29fe5822e5a158fb3fb4c63c32 (diff)
Mark max length work buffers uninitialized
Otherwise the hardening with initializing all buffers causes serious performance regressions Pick-to: 6.8 Change-Id: I3f7a0b7f0e0d08644b1dbb520cf1f6d5e052b270 Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/testlib/qtestcrashhandler.cpp')
-rw-r--r--src/testlib/qtestcrashhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcrashhandler.cpp b/src/testlib/qtestcrashhandler.cpp
index 42a715ff865..2a62044b14e 100644
--- a/src/testlib/qtestcrashhandler.cpp
+++ b/src/testlib/qtestcrashhandler.cpp
@@ -478,7 +478,7 @@ LONG WINAPI WindowsFaultHandler::windowsFaultHandler(struct _EXCEPTION_POINTERS
fprintf(stderr, "Nearby symbol : %s\n", exceptionSymbol.name);
delete [] exceptionSymbol.name;
}
- void *stack[maxStackFrames];
+ Q_DECL_UNINITIALIZED void *stack[maxStackFrames];
fputs("\nStack:\n", stderr);
const unsigned frameCount = CaptureStackBackTrace(0, DWORD(maxStackFrames), stack, NULL);
for (unsigned f = 0; f < frameCount; ++f) {