Only read symbol_id for strings which are known to be symbols 78/1778/1
authorChris Adams <christopher.adams@nokia.com>
Thu, 9 Aug 2012 04:34:58 +0000 (14:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Aug 2012 07:56:30 +0000 (09:56 +0200)
commit30662b5d64ff633f57d89290da2a85507d561187
tree96e6765db95a742df42f5c48f13411ddf3257416
parentf489fb6c7d056514cc916d06ea11bacda37eb062
Only read symbol_id for strings which are known to be symbols

Ensures that uninitialised symbol_id is not dereferenced if the
string is created on the stack via code generators instead of on
the heap.

Task-number: QTBUG-23126
Change-Id: I083586ad46796e70b0246413742d326c60f379e5
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
src/3rdparty/v8/src/api.cc
src/3rdparty/v8/src/heap-inl.h
src/3rdparty/v8/src/heap.cc