Changeset 65260 in webkit
- Timestamp:
- Aug 12, 2010 11:22:34 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r65255 r65260 1 2010-08-12 Gabor Loki <loki@webkit.org> 2 3 Reviewed by Geoffrey Garen. 4 5 Fix the array subscript is above array bounds warning in ByteArray on ARM. 6 https://bugs.webkit.org/show_bug.cgi?id=43358 7 8 The warning is very similar to this one: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37861 9 10 * wtf/ByteArray.cpp: 11 (WTF::ByteArray::create): 12 1 13 2010-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 14 -
trunk/JavaScriptCore/wtf/ByteArray.cpp
r40055 r65260 26 26 #include "config.h" 27 27 #include "ByteArray.h" 28 #include "StdLibExtras.h" 28 29 29 30 namespace WTF { … … 31 32 PassRefPtr<ByteArray> ByteArray::create(size_t size) 32 33 { 33 unsigned char* buffer = new unsigned char[size + sizeof(ByteArray) - sizeof(size_t)];34 unsigned char* buffer = new unsigned char[size + OBJECT_OFFSETOF(ByteArray, m_data)]; 34 35 ASSERT((reinterpret_cast<size_t>(buffer) & 3) == 0); 35 36 return adoptRef(new (buffer) ByteArray(size));
Note: See TracChangeset
for help on using the changeset viewer.