<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>184749</bug_id>
          
          <creation_ts>2018-04-18 12:55:48 -0700</creation_ts>
          <short_desc>Int8Array.prototype sets value to invalid position</short_desc>
          <delta_ts>2020-10-16 16:20:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>217854</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=188792</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=217854</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>isol2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>rmorisset</cc>
    
    <cc>ross.kirsling</cc>
    
    <cc>saam</cc>
    
    <cc>ticaiolima</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1415657</commentid>
    <comment_count>0</comment_count>
    <who name="">isol2</who>
    <bug_when>2018-04-18 12:55:48 -0700</bug_when>
    <thetext>Hi everyone,

I found a case of inconsistency when try to access an item in invalid position using Int8Array and Uint8Array (same behaviour appears using Int16Array/Uint16Array and Int32Array/Uint32Array).

Tag: 606.1.9.4
OS: ubuntu 16.04 x86

================
Reproduce steps:
- Run this code:
    Int8Array.prototype[10] = 999;
    var a = new Int8Array(5);
    if(!(a[10] === undefined)) throw new Error(&quot;Test failed&quot;);

Expected results:
pass without errors

Actual results:
Error: Test failed
================

V8, chakra and spidermonkey has passed on this testcase. It was observed that a[10] is 999 (the others engines is undefined), but if we change for &quot;var a = new Int8Array(20)&quot;, a[10] is 0 (same occurs with all others engines).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1416651</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-04-20 23:43:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/39618641&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453358</commentid>
    <comment_count>2</comment_count>
    <who name="">isol2</who>
    <bug_when>2018-08-23 18:02:02 -0700</bug_when>
    <thetext>cinfuzz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1698815</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2020-10-16 16:20:15 -0700</bug_when>
    <thetext>This will be fixed as part of bug 217854.

*** This bug has been marked as a duplicate of bug 217854 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>