summaryrefslogtreecommitdiff
path: root/src/format/symiter.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-01-29 20:56:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-01-29 21:04:47 (GMT)
commit6c51b9eed427fd55ce1457834853386cc8d543cd (patch)
tree47b8106bdb086278386d05c838178a06cc00f805 /src/format/symiter.c
parent8a7d7b3303dee1a381893391c04acab35dec6942 (diff)
Handled properly imported/exported ELF symbols, as well as all other symbols.
Diffstat (limited to 'src/format/symiter.c')
-rw-r--r--src/format/symiter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/format/symiter.c b/src/format/symiter.c
index 74b4abb..230b4ac 100644
--- a/src/format/symiter.c
+++ b/src/format/symiter.c
@@ -63,6 +63,11 @@ sym_iter_t *create_symbol_iterator(GBinFormat *format, size_t index)
{
sym_iter_t *result; /* Structure à retourner */
+#ifndef NDEBUG
+ if (index > 0)
+ g_binary_format_check_for_symbols_lock(format);
+#endif
+
result = (sym_iter_t *)malloc(sizeof(sym_iter_t));
g_object_ref(G_OBJECT(format));