Fix crash on host/target word size mismatches
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 7 May 2014 11:51:26 +0000 (13:51 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 9 May 2014 15:26:51 +0000 (17:26 +0200)
commit0640dce6cd3200979a9b98d5bbae4526fc6dcec8
tree15cdc6be016ec728759ca9f0aed88870ed70044e
parent18a96e8f4913dd96bcead3ddde99a015737e3a3b
Fix crash on host/target word size mismatches

When compiling on a 64-bit host and using the QV4::CompileData on a 32-bit
target, the size of QArrayData is different. Therefore we cannot use it in
the QV4::CompiledData and have to resort to storing only the characters in
there. We can at least still use fromRawData when extracting strings, but the
QStringData will have to be allocated now.

Change-Id: Ia9dab1722ed72186451b65ba74457051c6ce3155
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4compileddata_p.h
src/qml/compiler/qv4compiler.cpp