[Webkit-unassigned] [Bug 83818] New: Incorrect TypedArray#set behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 12 13:50:14 PDT 2012


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

           Summary: Incorrect TypedArray#set behavior
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: stephan at kochen.nl


Created an attachment (id=136964)
 --> (https://bugs.webkit.org/attachment.cgi?id=136964&action=review)
Test case

Copying between two TypedArrays of different types, but backed by the same ArrayBuffer, using TypedArray#set can lead to incorrect results.

The attached test case can be run straight in the Developer Tools console. It contains three asserts of which the third fails:

    Uint16 value: 1285 == 1285 ? true
    First Uint16 element: 5 == 5 ? true
    Second Uint16 element: 0 == 5 ? false

I'm guessing a[0] is written before b[1] is read. According to the spec, the copy should behave as if a temporary buffer is inbetween.

Tested on a nightly, that describes itself as: Version 5.1.5 (7534.55.3, r113983)

Thread on WebGL mailing list: https://www.khronos.org/webgl/public-mailing-list/archives/1204/msg00172.html

-- 
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