WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
201850
Wasm StreamingParser should validate that number of functions matches number of declarations
https://bugs.webkit.org/show_bug.cgi?id=201850
Summary
Wasm StreamingParser should validate that number of functions matches number ...
Tadeu Zagallo
Reported
2019-09-16 16:53:18 PDT
<
rdar://problem/55290186
>
Attachments
Patch
(6.44 KB, patch)
2019-09-16 17:12 PDT
,
Tadeu Zagallo
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.44 KB, patch)
2019-09-16 17:49 PDT
,
Tadeu Zagallo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tadeu Zagallo
Comment 1
2019-09-16 17:12:18 PDT
Created
attachment 378916
[details]
Patch
Yusuke Suzuki
Comment 2
2019-09-16 17:46:53 PDT
Comment on
attachment 378916
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=378916&action=review
r=me
> Source/JavaScriptCore/wasm/WasmStreamingParser.cpp:389 > + if (m_functionCount != m_info->functions.size()) { > + m_state = fail("Number of functions parsed (", m_functionCount, ") does not match the number of declared functions (", m_info->functions.size(), ")"); > + break; > + }
I suggest using m_functionIndex mainly for readability.
Tadeu Zagallo
Comment 3
2019-09-16 17:48:37 PDT
Comment on
attachment 378916
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=378916&action=review
Thanks for the review!
>> Source/JavaScriptCore/wasm/WasmStreamingParser.cpp:389 >> + } > > I suggest using m_functionIndex mainly for readability.
Works for me, I'll update it.
Tadeu Zagallo
Comment 4
2019-09-16 17:49:01 PDT
Created
attachment 378922
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2019-09-16 18:40:56 PDT
Comment on
attachment 378922
[details]
Patch for landing Clearing flags on attachment: 378922 Committed
r249935
: <
https://trac.webkit.org/changeset/249935
>
WebKit Commit Bot
Comment 6
2019-09-16 18:40:58 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug