diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-01-27 15:29:52 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2011-01-28 09:53:49 (GMT) |
commit | ead20f4c1edc2e1c5c39f47bf7c9e56600d6362b (patch) | |
tree | edc4e7a23f67778efba5f39774f294472e840f9e /src/script/api/qscriptprogram_p.h | |
parent | 2e72a8b19ea6c674fb4777860dac50faa5d387e6 (diff) | |
download | Qt-ead20f4c1edc2e1c5c39f47bf7c9e56600d6362b.zip Qt-ead20f4c1edc2e1c5c39f47bf7c9e56600d6362b.tar.gz Qt-ead20f4c1edc2e1c5c39f47bf7c9e56600d6362b.tar.bz2 |
Fix alignment issue causing crash in QtScript/JavaScriptCore
When creating a substring, JSC::UStringImpl required that the
base string pointer was 8-byte aligned. However, on platforms
where FastMalloc isn't enabled (such as Symbian), it's possible
that the system malloc() returns a pointer that is only 4-byte
aligned. (On Symbian, this can happen if the argument to malloc()
itself isn't a multiple of 8.)
Cherry-picked http://trac.webkit.org/changeset/54743 from WebKit
trunk, which fixes this issue. (The commit happened shortly after
we rebased QtScript/JSC for 4.7, so it applies cleanly to our copy.)
Task-number: QTBUG-16828
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/script/api/qscriptprogram_p.h')
0 files changed, 0 insertions, 0 deletions