Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt Don't core-dump if a ...
details: https://anonhg.NetBSD.org/src/rev/afa6b54d7088
branches: trunk
changeset: 327246:afa6b54d7088
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 03 00:09:52 2014 +0000
description:
Don't core-dump if a type cannot be resolved. Still gives an error.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 108541b9df82 -r afa6b54d7088 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Sun Mar 02 22:50:13 2014 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Mon Mar 03 00:09:52 2014 +0000
@@ -1064,6 +1064,9 @@
if (ml->ml_size == 0) {
mt = tdesc_basetype(ml->ml_type);
+ if (mt == NULL)
+ continue;
+
if ((ml->ml_size = tdesc_bitsize(mt)) != 0)
continue;
Home |
Main Index |
Thread Index |
Old Index