WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
228058
Fix canvas overflow checking to use CheckedArithmatic rather than adhoc floating point mechanism
https://bugs.webkit.org/show_bug.cgi?id=228058
Summary
Fix canvas overflow checking to use CheckedArithmatic rather than adhoc float...
Sam Weinig
Reported
2021-07-18 09:27:36 PDT
Fix canvas overflow checking to use CheckedArithmatic rather than adhoc floating point mechanism
Attachments
Patch
(4.33 KB, patch)
2021-07-18 09:28 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2021-07-18 09:28:25 PDT
Created
attachment 433750
[details]
Patch
EWS
Comment 2
2021-07-18 12:18:28 PDT
Committed
r280020
(
239762@main
): <
https://commits.webkit.org/239762@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 433750
[details]
.
Radar WebKit Bug Importer
Comment 3
2021-07-18 12:19:17 PDT
<
rdar://problem/80748974
>
Said Abou-Hallawa
Comment 4
2021-07-19 12:20:24 PDT
Comment on
attachment 433750
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=433750&action=review
> Source/WebCore/html/HTMLCanvasElement.cpp:879 > #if USE(IOSURFACE_CANVAS_BACKING_STORE)
Should not this #if be moved to the beginning of the function since #if USE(IOSURFACE_CANVAS_BACKING_STORE) is false, we are going to return false always?
Sam Weinig
Comment 5
2021-07-19 12:40:44 PDT
Comment on
attachment 433750
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=433750&action=review
>> Source/WebCore/html/HTMLCanvasElement.cpp:879 >> #if USE(IOSURFACE_CANVAS_BACKING_STORE) > > Should not this #if be moved to the beginning of the function since #if USE(IOSURFACE_CANVAS_BACKING_STORE) is false, we are going to return false always?
Sure, though that seems unrelated to the change. Seems like a fine change. If I was changing something like that, I would probably also add a better macro for this that isn't platform specific.
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