diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 18:34:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 18:34:24 +0000 |
commit | c23654eacc336d586fbb5fe059a0b2510b9822d9 (patch) | |
tree | 3c9347b6767310b1b1c3985ad0c17d27b7e049e9 /courgette | |
parent | 90829597e8724d1e37fe5e0e36868614d15d78b0 (diff) | |
download | chromium_src-c23654eacc336d586fbb5fe059a0b2510b9822d9.zip chromium_src-c23654eacc336d586fbb5fe059a0b2510b9822d9.tar.gz chromium_src-c23654eacc336d586fbb5fe059a0b2510b9822d9.tar.bz2 |
Coverity: Initialize member variables.
CID_COUNT=7
CID=13432,14429,16922,101542,101734,102304,102305
BUG=none
TEST=none
R=tbreisacher
TBR=jam@chromium.org,tommi@chromium.org,ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10830021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r-- | courgette/disassembler_elf_32_x86.cc | 10 | ||||
-rw-r--r-- | courgette/patcher_x86_32.h | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/courgette/disassembler_elf_32_x86.cc b/courgette/disassembler_elf_32_x86.cc index 181f6a3..6e3935c 100644 --- a/courgette/disassembler_elf_32_x86.cc +++ b/courgette/disassembler_elf_32_x86.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -18,7 +18,13 @@ namespace courgette { DisassemblerElf32X86::DisassemblerElf32X86(const void* start, size_t length) - : Disassembler(start, length) { + : Disassembler(start, length), + header_(NULL), + section_header_table_(NULL), + section_header_table_size_(0), + program_header_table_(NULL), + program_header_table_size_(0), + default_string_section_(NULL) { } bool DisassemblerElf32X86::ParseHeader() { diff --git a/courgette/patcher_x86_32.h b/courgette/patcher_x86_32.h index e69e932..cf8ac00 100644 --- a/courgette/patcher_x86_32.h +++ b/courgette/patcher_x86_32.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -17,7 +17,9 @@ namespace courgette { class PatcherX86_32 : public TransformationPatcher { public: explicit PatcherX86_32(const Region& region) - : ensemble_region_(region) { + : ensemble_region_(region), + base_offset_(0), + base_length_(0) { } Status Init(SourceStream* parameter_stream) { |