diff options
author | pfg <pfg@FreeBSD.org> | 2013-07-26 00:28:19 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-07-26 00:28:19 +0000 |
commit | 34504eb8a950687bf141e5748ab804c903d3ed3c (patch) | |
tree | 3835e545a57881bdfab8b9c6b637002224d90e6d /cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h | |
parent | 0f2f7957393d210c4606f7096c07a8f0bcebc03c (diff) | |
download | FreeBSD-src-34504eb8a950687bf141e5748ab804c903d3ed3c.zip FreeBSD-src-34504eb8a950687bf141e5748ab804c903d3ed3c.tar.gz |
Fix a segfault in ctfmerge due to a bug in gcc.
GCC can generate bogus dwarf attributes with DW_AT_byte_size
set to 0xFFFFFFFF.
The issue was originaly detected in NetBSD but it has been
adapted for portability and to avoid compiler warnings.
Reference:
https://www.illumos.org/issues/3776
Obtained from: NetBSD
MFC after: 1 month
Diffstat (limited to 'cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h')
-rw-r--r-- | cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h b/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h index 93a540d..9b2ee3d 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h @@ -159,7 +159,7 @@ typedef struct ardef { /* Auxiliary structure for structure/union tdesc_t */ typedef struct mlist { int ml_offset; /* Offset from start of structure (in bits) */ - int ml_size; /* Member size (in bits) */ + uint_t ml_size; /* Member size (in bits) */ char *ml_name; /* Member name */ struct tdesc *ml_type; /* Member type */ struct mlist *ml_next; /* Next member */ |