WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56890
It is possible to calculate a NaN value for "value" in ScrollbarThemeMac::paint()
https://bugs.webkit.org/show_bug.cgi?id=56890
Summary
It is possible to calculate a NaN value for "value" in ScrollbarThemeMac::pai...
Beth Dakin
Reported
2011-03-22 19:16:38 PDT
In ScrollbarThemeMac::paint() the following code can result in value being NaN, which is not great: else { // Within the bounds of the scrollable area. value = scrollbar->currentPos() / scrollbar->maximum(); } Patch forthcoming. <
rdar://problem/9160621
>
Attachments
Patch
(1.49 KB, patch)
2011-03-22 19:19 PDT
,
Beth Dakin
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2011-03-22 19:19:51 PDT
Created
attachment 86561
[details]
Patch
Sam Weinig
Comment 2
2011-03-22 19:43:42 PDT
Comment on
attachment 86561
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=86561&action=review
> Source/WebCore/platform/mac/ScrollbarThemeMac.mm:445 > + if (max > 0) > + value = scrollbar->currentPos() / max;
I think the whole word maximum here would be better.
Beth Dakin
Comment 3
2011-03-22 20:16:59 PDT
Fixed with revision 81745. Thanks, Sam!
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