RESOLVED FIXED57266
getComputedStyle counterIncrement crash @ WebCore::counterToCSSValue
https://bugs.webkit.org/show_bug.cgi?id=57266
Summary getComputedStyle counterIncrement crash @ WebCore::counterToCSSValue
Emil A Eklund
Reported 2011-03-28 14:25:47 PDT
Chrome Version : 11.0.696.16 beta URLs (if applicable) : Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 5: Firefox 3.x: IE 7/8: What steps will reproduce the problem? view the attached file "a.html" in chrome What is the expected result? an alert popup with some value What happens instead? "Aw, Snap!" Downstream chrome bug: http://code.google.com/p/chromium/issues/detail?id=77665
Attachments
Test case (138 bytes, text/html)
2011-03-28 14:26 PDT, Emil A Eklund
no flags
Patch (3.58 KB, patch)
2011-03-28 14:28 PDT, Emil A Eklund
darin: review-
darin: commit-queue-
Patch (3.58 KB, patch)
2011-03-28 14:32 PDT, Emil A Eklund
no flags
Emil A Eklund
Comment 1 2011-03-28 14:25:59 PDT
This is a NULL pointer crash in WebCore::counterToCSSValue.
Emil A Eklund
Comment 2 2011-03-28 14:26:13 PDT
Created attachment 87205 [details] Test case
Emil A Eklund
Comment 3 2011-03-28 14:28:46 PDT
Darin Adler
Comment 4 2011-03-28 14:30:00 PDT
Comment on attachment 87206 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=87206&action=review > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:775 > + return NULL; We use 0, not NULL, in the WebKit project.
WebKit Review Bot
Comment 5 2011-03-28 14:30:03 PDT
Attachment 87206 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 Source/WebCore/css/CSSComputedStyleDeclaration.cpp:775: Use 0 instead of NULL. [readability/null] [5] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Emil A Eklund
Comment 6 2011-03-28 14:32:33 PDT
Created attachment 87209 [details] Patch Of course, my bad. Old habit, takes some time to retrain.
WebKit Commit Bot
Comment 7 2011-03-29 03:32:07 PDT
Comment on attachment 87209 [details] Patch Clearing flags on attachment: 87209 Committed r82222: <http://trac.webkit.org/changeset/82222>
WebKit Commit Bot
Comment 8 2011-03-29 03:32:10 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.