diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-27 09:56:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-27 09:56:43 (GMT) |
commit | 1001a818520e401d6c624eb666dfa4067f2ecd38 (patch) | |
tree | 2d8b9663bafd53b4380eb218e793d3f61d95a264 /src/analysis | |
parent | ce422fd3b2831ab37de599f40297c6781e5bdfc0 (diff) |
Made the Dex demangler more reliable.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/types/encaps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analysis/types/encaps.c b/src/analysis/types/encaps.c index 537d849..36dc71a 100644 --- a/src/analysis/types/encaps.c +++ b/src/analysis/types/encaps.c @@ -24,6 +24,9 @@ #include "encaps.h" +#include <assert.h> + + #include "../routine.h" #include "../type-int.h" #include "../../common/extstr.h" @@ -143,11 +146,13 @@ GDataType *g_encapsulated_type_new(EncapsulationType type, ...) { case ECT_ROUTINE: result->routine = va_arg(ap, GBinRoutine *); + assert(result->routine != NULL); g_binary_routine_set_name(result->routine, "(*)"); break; default: result->child = va_arg(ap, GDataType *); + assert(result->child != NULL); break; } |