[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Chad Loder <cloder_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Fri, 9 Dec 2005 22:35:16 -0700 (MST)
Module name: src
Changes by: cloder_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2005/12/09 22:35:16
Fix a crash when enum bitfields are encountered. Reported by marc on
sparc but we really should see the crash on any arch. Lots of places
in the code assume that if tspec == ENUM that they can touch t_enum,
so when we see an ENUM bitfield, we coerce the type to INT or UINT.
We also clear the t_isenum flag and the t_proto flag any time we
invalidate the data in the union. We should be stricter about checking
t_isenum everywhere, but that is a bigger job.