From e4b34b17cdf73cdd847acbd3400bc85a8ab0452e Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 8 Mar 2015 21:39:57 +0000 Subject: Fixed a bug when dealing with a symbol without label. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@484 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/dialogs/gotox.c | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 46ccde4..c9fa354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 15-03-08 Cyrille Bagard + * src/dialogs/gotox.c: + Fix a bug when dealing with a symbol without label. + +15-03-08 Cyrille Bagard + * 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(_("")); + + else + name = make_symbol_offset(label, diff); } else -- cgit v0.11.2-87-g4458