Bug 54405 - Fix coverity REVERSE_INULL errors
Summary: Fix coverity REVERSE_INULL errors
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 11:47 PST by sangeetha.sugavanam
Modified: 2011-05-19 15:17 PDT (History)
4 users (show)

See Also:


Attachments
Patch fixing all the reverse_inull errors in coverity (2.20 KB, patch)
2011-02-14 11:47 PST, sangeetha.sugavanam
no flags Details | Formatted Diff | Diff
patch fixing the coverity reverse_inull errors in webkit.org (2.02 KB, patch)
2011-02-15 11:08 PST, sangeetha.sugavanam
darin: review-
darin: commit-queue-
Details | Formatted Diff | Diff
Changelog (469.28 KB, text/plain)
2011-02-15 11:09 PST, sangeetha.sugavanam
darin: review-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sangeetha.sugavanam 2011-02-14 11:47:41 PST
Created attachment 82346 [details]
Patch fixing all the reverse_inull errors in coverity

I am submitting a patch which fixes all the reverse_inull errors from coverity.
Comment 1 Suresh Voruganti 2011-02-14 12:51:07 PST
Updated Platform version to reflect Symbian and adding to Qtwebkit 2.1.1 Nice to have master bug
Comment 2 sangeetha.sugavanam 2011-02-15 11:08:44 PST
Created attachment 82490 [details]
patch fixing the coverity reverse_inull errors in webkit.org
Comment 3 sangeetha.sugavanam 2011-02-15 11:09:50 PST
Created attachment 82491 [details]
Changelog
Comment 4 WebKit Review Bot 2011-02-15 11:12:31 PST
Attachment 82491 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files']" 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 5 WebKit Review Bot 2011-02-15 11:13:18 PST
Attachment 82490 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/dom/ContainerNode.cpp', u'S..." exit_code: 1

Source/WebCore/dom/ContainerNode.cpp:791:  Missing space before ( in if(  [whitespace/parens] [5]
Source/WebCore/dom/ContainerNode.cpp:856:  Missing space before ( in if(  [whitespace/parens] [5]
Source/WebCore/page/Chrome.cpp:400:  Missing space before ( in if(  [whitespace/parens] [5]
Source/WebCore/page/Chrome.cpp:400:  Missing space before {  [whitespace/braces] [5]
Source/WebCore/page/Chrome.cpp:413:  Tab found; better to use spaces  [whitespace/tab] [1]
Source/WebCore/page/Chrome.cpp:552:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 6 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Darin Adler 2011-02-15 12:13:48 PST
Comment on attachment 82490 [details]
patch fixing the coverity reverse_inull errors in webkit.org 

Style is wrong here.

And we won’t just add null checks without test cases. We want to cover the cases where these are null, not just take the tool’s word for it. The tool helped us discover the missing null checks. Now human beings have to actually create test cases.

Also, patches need to include the change log entries in them. Separately posting a copy of the entire change log is not acceptable.
Comment 7 Darin Adler 2011-02-15 12:14:03 PST
Comment on attachment 82491 [details]
Changelog 

Not a patch, can’t be reviewed.
Comment 8 Alexis Menard (darktears) 2011-03-11 09:03:36 PST
Please follow the wiki for contributing patches :

http://www.webkit.org/coding/contributing.html

Thanks
Comment 9 sangeetha.sugavanam 2011-05-19 07:51:35 PDT
This bug can be ignored because reverse_inull errors cannot be proven through appropriate test cases.