diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/dialogs/gotox.c | 11 |
2 files changed, 15 insertions, 1 deletions
@@ -1,5 +1,10 @@ 15-03-08 Cyrille Bagard <nocbos@gmail.com> + * src/dialogs/gotox.c: + Fix a bug when dealing with a symbol without label. + +15-03-08 Cyrille Bagard <nocbos@gmail.com> + * src/analysis/disass/area.c: * src/format/symbol.c: * src/format/symbol.h: diff --git a/src/dialogs/gotox.c b/src/dialogs/gotox.c index 33664d7..01d18f8 100644 --- a/src/dialogs/gotox.c +++ b/src/dialogs/gotox.c @@ -335,7 +335,16 @@ static void add_new_location_to_list(GtkTreeStore *store, GLoadedBinary *binary, { label = g_binary_symbol_get_label(symbol); - name = make_symbol_offset(label, diff); + /** + * Un symbole ne possède pas toujours d'étiquette. + * C'est le cas par exemple pour les valeurs chargées par + * les instructions ARM de type 'ldr'. + */ + if (label == NULL) + name = strdup(_("<no symbol found>")); + + else + name = make_symbol_offset(label, diff); } else |