summaryrefslogtreecommitdiffstats
path: root/courgette/image_info.cc
diff options
context:
space:
mode:
authorsra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 01:30:06 +0000
committersra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 01:30:06 +0000
commitd38c3a28213b3a2bc62df703c231eebf0bb5dbf4 (patch)
treef621cc23ae43d38cce013c5a795e35a043c4bc34 /courgette/image_info.cc
parent31856be711996fc573ca6203db7512ab6089899d (diff)
downloadchromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.zip
chromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.tar.gz
chromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.tar.bz2
Coverity fixes to keep coverity quiet.
Only the first issue is remotely interesting. * Possibility (low) of using NULL SinkStream* courgette tool 'gen1a' command. * Added initializers for all class members to several constructors. * return 0 at end of from wmain. BUG=none TEST=existing Review URL: http://codereview.chromium.org/155820 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/image_info.cc')
-rw-r--r--courgette/image_info.cc22
1 files changed, 20 insertions, 2 deletions
diff --git a/courgette/image_info.cc b/courgette/image_info.cc
index ed42f12..8d1b9aa 100644
--- a/courgette/image_info.cc
+++ b/courgette/image_info.cc
@@ -26,8 +26,26 @@ std::string SectionName(const Section* section) {
PEInfo::PEInfo()
: failure_reason_("uninitialized"),
- start_(0), end_(0), length_(0),
- is_PE32_plus_(0), file_length_(0), has_text_section_(false) {
+ start_(0),
+ end_(0),
+ length_(0),
+ is_PE32_plus_(false),
+ file_length_(0),
+ optional_header_(NULL),
+ size_of_optional_header_(0),
+ offset_of_data_directories_(0),
+ machine_type_(0),
+ number_of_sections_(0),
+ sections_(NULL),
+ has_text_section_(false),
+ size_of_code_(0),
+ size_of_initialized_data_(0),
+ size_of_uninitialized_data_(0),
+ base_of_code_(0),
+ base_of_data_(0),
+ image_base_(0),
+ size_of_image_(0),
+ number_of_data_directories_(0) {
}
void PEInfo::Init(const void* start, size_t length) {