summaryrefslogtreecommitdiffstats
path: root/courgette/image_info.h
diff options
context:
space:
mode:
authorsra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:12:32 +0000
committersra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:12:32 +0000
commit077d7bd678054e21c36d7c569f3041aae8b4267f (patch)
treeed030da10cfe96fca5817e72af9eab9f7467fae0 /courgette/image_info.h
parent776f67ff177c12ba85f2095c8930ab90c577c79b (diff)
downloadchromium_src-077d7bd678054e21c36d7c569f3041aae8b4267f.zip
chromium_src-077d7bd678054e21c36d7c569f3041aae8b4267f.tar.gz
chromium_src-077d7bd678054e21c36d7c569f3041aae8b4267f.tar.bz2
When iterating over the sections in a file, omit sections that have no raw data in the file.
BUG=none TEST=none Review URL: http://codereview.chromium.org/113917 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/image_info.h')
-rw-r--r--courgette/image_info.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/courgette/image_info.h b/courgette/image_info.h
index 53a0be7..17936e1 100644
--- a/courgette/image_info.h
+++ b/courgette/image_info.h
@@ -119,7 +119,8 @@ class PEInfo {
return start_ + offset;
}
- // Finds the first section at file_offset or above.
+ // Finds the first section at file_offset or above. Does not return sections
+ // that have no raw bytes in the file.
const Section* FindNextSection(uint32 file_offset) const;
// Returns Section containing the relative virtual address, or NULL if none.
const Section* RVAToSection(RVA rva) const;