WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
169027
[GTK] Fix problems found by Coverity scan in WebPrintOperationGtk.cpp
https://bugs.webkit.org/show_bug.cgi?id=169027
Summary
[GTK] Fix problems found by Coverity scan in WebPrintOperationGtk.cpp
Tomas Popela
Reported
2017-03-01 03:37:09 PST
65. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:365: member_decl: Class member declaration for "totalToPrint". 66. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:306: uninit_member: Non-static class member "totalToPrint" is not initialized in this constructor nor in any functions that it calls. 67. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:372: member_decl: Class member declaration for "lastPagePosition". 68. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:306: uninit_member: Non-static class member "lastPagePosition" is not initialized in this constructor nor in any functions that it calls. # 304| firstPagePosition = printOperation->pagePosition(); # 305| firstSheetNumber = sheetNumber; # 306|-> } # 307| # 308| size_t collatedCopiesLeft() and 69. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:365: member_decl: Class member declaration for "totalToPrint". 70. webkitgtk-2.14.5/Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:299: uninit_member: Non-static class member "totalToPrint" is not initialized in this constructor nor in any functions that it calls. # 297| if (sheetNumber * numberUp >= pages.size()) { # 298| isValid = false; # 299|-> return; # 300| } # 301| actually the totalToPrint member is not used at all -> remove it.
Attachments
Patch
(1.58 KB, patch)
2017-03-01 03:41 PST
,
Tomas Popela
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tomas Popela
Comment 1
2017-03-01 03:41:35 PST
Created
attachment 303058
[details]
Patch
Tomas Popela
Comment 2
2017-03-01 06:16:01 PST
Comment on
attachment 303058
[details]
Patch Clearing flags on attachment: 303058 Committed
r213217
: <
http://trac.webkit.org/changeset/213217
>
Tomas Popela
Comment 3
2017-03-01 06:16:10 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug