[Webkit-unassigned] [Bug 43358] Fix warning in JavaScriptCore/wtf/ByteArray.h

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 11 00:21:06 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43358


Gabor Loki <loki at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #64081|                            |review?
               Flag|                            |




--- Comment #7 from Gabor Loki <loki at webkit.org>  2010-08-11 00:21:06 PST ---
Created an attachment (id=64081)
 --> (https://bugs.webkit.org/attachment.cgi?id=64081)
Fix the array subscript is above array bounds warning in ByteArray on ARM.

This patch uses the offsetof method to compute the static size of the structure for creation.

It looks like if the creation of an array is in the same context where the usage of the same array is unrolled, the GCC will shoot this false positive warning. I would like to create a small example which demonstrates this warning for the GCC community.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list