summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
commit355a7140932b77d351bc6ddd965608b0011af855 (patch)
treef297872a2a33e0617d5fad0c85d00871f1482b06 /src/analysis
parent0727204e36e919f06e80181482981c3f19669d76 (diff)
Fixed most of the warnings about use of uninitialized data.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@607 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/binary.c4
-rw-r--r--src/analysis/db/server.c3
-rw-r--r--src/analysis/disass/area.c3
-rw-r--r--src/analysis/disass/disassembler.c4
4 files changed, 9 insertions, 5 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index ae8054b..5884350 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -1107,7 +1107,7 @@ bool _g_loaded_binary_add_to_collection(GLoadedBinary *binary, DBFeatures featur
/* S'il n'y a pas besoin de sauvegarde... */
if (g_db_item_is_volatile(item))
- _g_db_collection_add_item(collec, item, lock);
+ result = _g_db_collection_add_item(collec, item, lock);
/* Sinon on envoie par le réseau ! */
else
@@ -1167,7 +1167,7 @@ bool _g_loaded_binary_remove_from_collection(GLoadedBinary *binary, DBFeatures f
/* S'il n'y a pas besoin de sauvegarde... */
if (g_db_item_is_volatile(item))
- _g_db_collection_remove_item(collec, item, lock);
+ result = _g_db_collection_remove_item(collec, item, lock);
/* Sinon on envoie par le réseau ! */
else
diff --git a/src/analysis/db/server.c b/src/analysis/db/server.c
index 3ef1ce0..3107231 100644
--- a/src/analysis/db/server.c
+++ b/src/analysis/db/server.c
@@ -249,12 +249,12 @@ static void *g_db_server_listener(GDbServer *server)
char source[INET6_ADDRSTRLEN]; /* Adresse du client (IPv4/6) */
const char *ip; /* Statut de la conversion */
DBError error; /* Validation de la connexion */
+ GCdbArchive *archive; /* Destinataire final du client*/
uint32_t cmd; /* Commande initiale lue */
uint32_t version; /* Version du client lue */
rle_string hash; /* Empreinte du binaire visé */
rle_string user; /* Nom d'utilisateur du client */
GList *iter; /* Boucle de parcours */
- GCdbArchive *archive; /* Destinataire final du client*/
fds.fd = server->fd;
fds.events = POLLIN | POLLPRI;
@@ -285,6 +285,7 @@ static void *g_db_server_listener(GDbServer *server)
}
error = DBE_NONE;
+ archive = NULL;
/**
* Le premier "paquet" reçu de la part d'un client doit contenir les informations suivantes :
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index de2c742..1d841be 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -1188,6 +1188,9 @@ mem_area *compute_memory_areas(GExeFormat *format, phys_t bin_length, size_t *co
{
/* Sélection et écartement des symboles */
+ range = NULL; /* Pour GCC */
+ length = 0; /* Pour GCC */
+
for (; j < sym_count; j++)
{
type = g_binary_symbol_get_target_type(symbols[j]);
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c
index 2f9d293..ce49aca 100644
--- a/src/analysis/disass/disassembler.c
+++ b/src/analysis/disass/disassembler.c
@@ -328,13 +328,13 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkExtSta
- //id = gtk_extended_status_bar_push(statusbar, _("Finding remaining limits..."), true);
+ id = gtk_extended_status_bar_push(statusbar, _("Finding remaining limits..."), true);
//qsort(routines, routines_count, sizeof(GBinRoutine *), (__compar_fn_t)g_binary_routine_rcompare);
limit_all_routines(disass->format, proc, routines, routines_count, statusbar, id);
- //gtk_extended_status_bar_remove(statusbar, id);
+ gtk_extended_status_bar_remove(statusbar, id);
//run_plugins_on_binary(disass->binary, PGA_BINARY_BOUNDED, true);