Bug 36144 - NULL pointer access in webkit_web_window_features_equal()
Summary: NULL pointer access in webkit_web_window_features_equal()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 15:33 PDT by Philip Chimento
Modified: 2010-03-18 23:46 PDT (History)
2 users (show)

See Also:


Attachments
Patch against svn trunk (538 bytes, patch)
2010-03-15 15:33 PDT, Philip Chimento
eric: review-
Details | Formatted Diff | Diff
Updated patch that conforms to guidelines (3.67 KB, patch)
2010-03-18 14:20 PDT, Philip Chimento
no flags Details | Formatted Diff | Diff
Another patch (4.87 KB, patch)
2010-03-18 14:38 PDT, Philip Chimento
no flags Details | Formatted Diff | Diff
Another patch (4.87 KB, patch)
2010-03-18 14:47 PDT, Philip Chimento
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Chimento 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.
Comment 1 WebKit Review Bot 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.
Comment 2 Eric Seidel (no email) 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
Comment 3 Philip Chimento 2010-03-18 14:20:57 PDT
Created attachment 51092 [details]
Updated patch that conforms to guidelines

Okayyyy, here's another patch.
Comment 4 WebKit Review Bot 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.
Comment 5 Philip Chimento 2010-03-18 14:38:31 PDT
Created attachment 51096 [details]
Another patch

Whatever
Comment 6 WebKit Review Bot 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.
Comment 7 Philip Chimento 2010-03-18 14:47:18 PDT
Created attachment 51098 [details]
Another patch

Now I'm correcting style transgressions that weren't even mine!
Comment 8 Oliver Hunt 2010-03-18 21:29:02 PDT
Comment on attachment 51098 [details]
Another patch

r=me
Comment 9 WebKit Commit Bot 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>
Comment 10 WebKit Commit Bot 2010-03-18 23:46:54 PDT
All reviewed patches have been landed.  Closing bug.