Module Name: src
Committed By: christos
Date: Mon Mar 3 00:09:52 UTC 2014
Modified Files:
src/external/cddl/osnet/dist/tools/ctf/cvt: dwarf.c
Log Message:
Don't core-dump if a type cannot be resolved. Still gives an error.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
diff -u src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.6 src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.7
--- src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.6 Fri Jan 18 11:23:48 2013
+++ src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Sun Mar 2 19:09:52 2014
@@ -1064,6 +1064,9 @@ die_sou_resolve(tdesc_t *tdp, tdesc_t **
if (ml->ml_size == 0) {
mt = tdesc_basetype(ml->ml_type);
+ if (mt == NULL)
+ continue;
+
if ((ml->ml_size = tdesc_bitsize(mt)) != 0)
continue;