summaryrefslogtreecommitdiffstats
path: root/courgette/image_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'courgette/image_info.cc')
-rw-r--r--courgette/image_info.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/courgette/image_info.cc b/courgette/image_info.cc
index 0c8cdf6..ce0e0ae 100644
--- a/courgette/image_info.cc
+++ b/courgette/image_info.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -310,6 +310,14 @@ bool PEInfo::ParseHeader() {
file_length_ = section_end;
}
+ if (!is_32bit()) {
+ return Bad("64 bit executables are not yet supported");
+ }
+
+ if (!has_text_section()) {
+ return Bad("Resource-only executables are not yet supported");
+ }
+
failure_reason_ = NULL;
return true;
}