Bug 192033

Summary: r238510 broke scopes of size zero
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, fpizlo, ggaren, gskachkov, keith_miller, mark.lam, msaboff, rmorisset, ryanhaddad, ticaiolima, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=191958
Attachments:
Description Flags
patch none

Description Saam Barati 2018-11-27 13:42:35 PST
Because maxScopeOffset() for the SymbolTable will be UINT_MAX, this loop runs for UINT_MAX iterations:

for (ScopeOffset offset { 0 }; offset <= symbolTable->maxScopeOffset(); offset += 1) { ... }
Comment 1 Saam Barati 2018-11-27 13:44:58 PST
<rdar://problem/46281734>
Comment 2 Saam Barati 2018-11-27 13:51:58 PST
Created attachment 355773 [details]
patch
Comment 3 Keith Miller 2018-11-27 13:56:05 PST
r=me.
Comment 4 WebKit Commit Bot 2018-11-27 18:03:29 PST
Comment on attachment 355773 [details]
patch

Clearing flags on attachment: 355773

Committed r238596: <https://trac.webkit.org/changeset/238596>
Comment 5 WebKit Commit Bot 2018-11-27 18:03:31 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Ryan Haddad 2018-11-28 08:54:41 PST
*** Bug 192015 has been marked as a duplicate of this bug. ***