<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Parse the entire WebAssembly modules"
   href="https://bugs.webkit.org/show_bug.cgi?id=147393#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Parse the entire WebAssembly modules"
   href="https://bugs.webkit.org/show_bug.cgi?id=147393">bug 147393</a>
              from <span class="vcard"><a class="email" href="mailto:saambarati1&#64;gmail.com" title="Saam Barati &lt;saambarati1&#64;gmail.com&gt;"> <span class="fn">Saam Barati</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=257910&amp;action=diff" name="attach_257910" title="Patch">attachment 257910</a> <a href="attachment.cgi?id=257910&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=257910&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=257910&amp;action=review</a>

<span class="quote">&gt; Source/JavaScriptCore/wasm/WASMReader.cpp:83
&gt; +    CHECK_READ(1);</span >

Why not do everything in the loop?

<span class="quote">&gt; Source/JavaScriptCore/wasm/WASMReader.cpp:89
&gt; +    while (true) {</span >

What's stopping this from reading more than 4 bytes?

<span class="quote">&gt; Source/JavaScriptCore/wasm/WASMReader.cpp:96
&gt; +        result |= (byte &amp; 0x7f) &lt;&lt; shift;</span >

Or maybe the limit is we can read at most 5 bytes?
Can compact int values be larger than 2^28?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>