diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2023-01-09 12:40:37 +0100 |
---|---|---|
committer | Mikołaj Boc <Mikolaj.Boc@qt.io> | 2023-01-09 17:47:23 +0000 |
commit | 84375e582cb68644d560fee307a00b48e323967e (patch) | |
tree | 9f14489b4760446f08c9183df4c188f8c7bd74ce /src/qml/memory | |
parent | 9435b154982569f8ffeaf3d8dddcd4860a5886df (diff) |
Drop the stackBase != (void*)0 constraint in qv4stacklimits
The assumption is incorrect on e.g. WASM where a 0 stack base address
may appear. Moreover, there is no mention of 0 not being a viable
address in pthread_attr_getstack's man page.
Task-number: QTBUG-109942
Change-Id: I37a8dc28735881a9c3d4a0bef1fc3a6de707e0aa
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/memory')
-rw-r--r-- | src/qml/memory/qv4stacklimits.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/memory/qv4stacklimits.cpp b/src/qml/memory/qv4stacklimits.cpp index ae3a223e4e..403f4ba2d7 100644 --- a/src/qml/memory/qv4stacklimits.cpp +++ b/src/qml/memory/qv4stacklimits.cpp @@ -239,9 +239,6 @@ StackProperties stackPropertiesGeneric(qsizetype stackSize = 0) if (rc) qFatal("Cannot find stack base"); - if (!stackBase) - qFatal("Invalid stack base"); - # if Q_STACK_GROWTH_DIRECTION < 0 stackBase = decrementStackPointer(stackBase, regionSize); # endif |