RESOLVED FIXED 36144
NULL pointer access in webkit_web_window_features_equal()
https://bugs.webkit.org/show_bug.cgi?id=36144
Summary NULL pointer access in webkit_web_window_features_equal()
Philip Chimento
Reported 2010-03-15 15:33:12 PDT
Created attachment 50747 [details] Patch against svn trunk If you try to set the 'window-features' GObject property to NULL, then webkit-gtk crashes. You may ask, why would I want to set that property to NULL? Well, if I use the Glade application to construct a user interface containing WebKitWebViews, then it happens. I have attached a patch.
Attachments
Patch against svn trunk (538 bytes, patch)
2010-03-15 15:33 PDT, Philip Chimento
eric: review-
Updated patch that conforms to guidelines (3.67 KB, patch)
2010-03-18 14:20 PDT, Philip Chimento
no flags
Another patch (4.87 KB, patch)
2010-03-18 14:38 PDT, Philip Chimento
no flags
Another patch (4.87 KB, patch)
2010-03-18 14:47 PDT, Philip Chimento
no flags
WebKit Review Bot
Comment 1 2010-03-15 15:34:55 PDT
Attachment 50747 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 Total errors found: 0 in 0 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 2 2010-03-15 19:03:33 PDT
Comment on attachment 50747 [details] Patch against svn trunk All changes require ChangeLog entries and test cases. See http://webkit.org/coding/contributing.html
Philip Chimento
Comment 3 2010-03-18 14:20:57 PDT
Created attachment 51092 [details] Updated patch that conforms to guidelines Okayyyy, here's another patch.
WebKit Review Bot
Comment 4 2010-03-18 14:28:59 PDT
Attachment 51092 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit/gtk/webkit/webkitwebview.cpp:3018: Missing space before ( in if( [whitespace/parens] [5] WebKit/gtk/webkit/webkitwebview.cpp:3018: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WARNING: File exempt from style guide. Skipping: "WebKit/gtk/tests/testwebview.c" WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:427: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 3 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Philip Chimento
Comment 5 2010-03-18 14:38:31 PDT
Created attachment 51096 [details] Another patch Whatever
WebKit Review Bot
Comment 6 2010-03-18 14:41:08 PDT
Attachment 51096 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WARNING: File exempt from style guide. Skipping: "WebKit/gtk/tests/testwebview.c" WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:433: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:434: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:435: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:436: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:437: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:438: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:439: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:440: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] WebKit/gtk/webkit/webkitwebwindowfeatures.cpp:441: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] Total errors found: 9 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Philip Chimento
Comment 7 2010-03-18 14:47:18 PDT
Created attachment 51098 [details] Another patch Now I'm correcting style transgressions that weren't even mine!
Oliver Hunt
Comment 8 2010-03-18 21:29:02 PDT
Comment on attachment 51098 [details] Another patch r=me
WebKit Commit Bot
Comment 9 2010-03-18 23:46:49 PDT
Comment on attachment 51098 [details] Another patch Clearing flags on attachment: 51098 Committed r56217: <http://trac.webkit.org/changeset/56217>
WebKit Commit Bot
Comment 10 2010-03-18 23:46:54 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.