diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-03-15 13:38:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-03-15 13:38:22 (GMT) |
commit | 4ad9e532a78401f787f0a8a6742095512b520488 (patch) | |
tree | 2b71914a52fc930be78939362b16756efe9caa68 /src/format/exe_format-int.h | |
parent | a2b767b244e03f00c6a987bbd9872796ed385f47 (diff) |
Avoided to crash when analysing crackmes such as grainne.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@55 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/exe_format-int.h')
-rw-r--r-- | src/format/exe_format-int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/exe_format-int.h b/src/format/exe_format-int.h index a882891..3bba821 100644 --- a/src/format/exe_format-int.h +++ b/src/format/exe_format-int.h @@ -48,6 +48,9 @@ struct _bin_part +/* Fournit l'adresse mémoire du point d'entrée du programme. */ +typedef uint64_t (* get_entry_point_fc) (const exe_format *); + /* Fournit les références aux zones de code à analyser. */ typedef bin_part ** (* get_def_parts_fc) (const exe_format *, size_t *); @@ -73,6 +76,7 @@ struct _exe_format const uint8_t *content; /* Contenu binaire à étudier */ off_t length; /* Taille de ce contenu */ + get_entry_point_fc get_entry_point; /* Obtention du point d'entrée */ get_def_parts_fc get_def_parts; /* Liste des parties de code */ find_section_fc find_section; /* Recherche d'une section */ get_symbols_fc get_symbols; /* Liste des symboles présents */ |