summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
commit8e275f286138db88140d1643d1008f130ba7f484 (patch)
treeeea120992ae5a9c2a341e3bee336620ecdc65a6f /src/analysis/disass
parentfd0df8f884336fc69bd0938453f9712c166f08c8 (diff)
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/limit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/disass/limit.c b/src/analysis/disass/limit.c
index 103f878..b0ac6fc 100644
--- a/src/analysis/disass/limit.c
+++ b/src/analysis/disass/limit.c
@@ -76,7 +76,7 @@ void compute_routine_limit(GBinSymbol *symbol, const vmpa2t *next, GArchProcesso
/* Dans tous les cas, on va se référer à la portion contenante... */
- portion = g_binary_portion_find_at_addr(portions, &addr, (GdkRectangle []) { });
+ portion = g_binary_portion_find_at_addr(portions, &addr, (GdkRectangle []) { { 0 } });
assert(portion != NULL);
range = g_binary_portion_get_range(portion);