This is the first patch that fix bug #20612. Zheng Da
2009-07-20 Zheng Da <zhengda1...@gmail.com> fix a bug #20612 * rpctrace.c (print_contents): Check the number of elements in the port array. diff --git a/utils/rpctrace.c b/utils/rpctrace.c index d80f41d..b7379a7 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -631,7 +631,7 @@ print_contents (mach_msg_header_t *inp, else type->msgt_name = name; } - else if (newtypes[0] != name) + else if (nelt > 0 && newtypes[0] != name) if (type->msgt_longform) lt->msgtl_name = newtypes[0]; else