]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/qt5/qt5declarative/5.9.1/0001-Fix-alignment-issue-on-ARMv7.patch
qt5: add license file hashes for all submodules
[coffee/buildroot.git] / package / qt5 / qt5declarative / 5.9.1 / 0001-Fix-alignment-issue-on-ARMv7.patch
1 From 03c2661b1243cc529fc3d8cfa65073f1da420307 Mon Sep 17 00:00:00 2001
2 From: Simon Hausmann <simon.hausmann@qt.io>
3 Date: Thu, 22 Jun 2017 13:34:09 +0200
4 Subject: [PATCH 1/1] Fix alignment issue on ARMv7
5
6 As analyzed in the bug report, it appears that we may get
7 QV4::CompiledData::Function pointers for writing that are not aligned
8 for the 64-bit fields at the beginning.
9
10 [ChangeLog][QtQml] Fix crash due to misaligned data structures on ARMv7
11
12 Task-number: QTBUG-61552
13 Change-Id: I6b2c166b725496150c8850475577628ccd811d65
14 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
15 commit: https://codereview.qt-project.org/#/c/198278/
16
17 Signed-off-by: Petar Koretic <petar.koretic@qaap.io>
18 ---
19  src/qml/compiler/qv4compiler.cpp | 2 ++
20  1 file changed, 2 insertions(+)
21
22 diff --git a/src/qml/compiler/qv4compiler.cpp b/src/qml/compiler/qv4compiler.cpp
23 index e32749bbf7..c32e1685a0 100644
24 --- a/src/qml/compiler/qv4compiler.cpp
25 +++ b/src/qml/compiler/qv4compiler.cpp
26 @@ -406,6 +406,8 @@ QV4::CompiledData::Unit QV4::Compiler::JSUnitGenerator::generateHeader(QV4::Comp
27      *jsClassDataOffset = nextOffset;
28      nextOffset += jsClassData.size();
29  
30 +    nextOffset = (nextOffset + 7) & ~quint32(0x7);
31 +
32      for (int i = 0; i < irModule->functions.size(); ++i) {
33          QV4::IR::Function *f = irModule->functions.at(i);
34          functionOffsets[i] = nextOffset;
35 -- 
36 2.13.3
37