Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Unified Diff: src/trusted/service_runtime/nacl_error_code.c

Issue 8161004: Handle ELFCLASS32 files for x86-64 (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebased; binary testdata committed separately Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/service_runtime/nacl_error_code.c
diff --git a/src/trusted/service_runtime/nacl_error_code.c b/src/trusted/service_runtime/nacl_error_code.c
index e715ce6a2cf4ddb3321541b19027657511f82b4d..c8930e75a3116ea5f8b61769e4faa275f559a029 100644
--- a/src/trusted/service_runtime/nacl_error_code.c
+++ b/src/trusted/service_runtime/nacl_error_code.c
@@ -46,14 +46,14 @@ char const *NaClErrorString(NaClErrorCode errcode) {
return "ELF file for wrong architecture";
case LOAD_BAD_ELF_VERS:
return "ELF version mismatch";
- case LOAD_TOO_MANY_SECT:
- return "Too many section headers";
- case LOAD_BAD_SECT:
- return "ELF bad sections";
+ case LOAD_EHDR_OVERFLOW:
+ return "ELFCLASS64 file header has fields that overflow 32 bits";
+ case LOAD_PHDR_OVERFLOW:
+ return "ELFCLASS64 program header has fields that overflow 32 bits";
case LOAD_NO_MEMORY:
return "Insufficient memory to load file";
- case LOAD_SECT_HDR:
- return "ELF section header string table load error";
+ case LOAD_BAD_EHSIZE:
+ return "ELFCLASS64 file header has wrong e_ehsize value";
case LOAD_ADDR_SPACE_TOO_SMALL:
return "Address space too small";
case LOAD_ADDR_SPACE_TOO_BIG:

Powered by Google App Engine
This is Rietveld 408576698