diff options
author | 2005-12-10 05:35:15 +0000 | |
---|---|---|
committer | 2005-12-10 05:35:15 +0000 | |
commit | 5beea806f215d0c8f0115d0905e1c2db21195200 (patch) | |
tree | daecb1b2ad358b4227288bf7da5f74b6208756e1 /sys/dev/ic/ath.c | |
parent | ANSI functions. (diff) | |
download | wireguard-openbsd-5beea806f215d0c8f0115d0905e1c2db21195200.tar.xz wireguard-openbsd-5beea806f215d0c8f0115d0905e1c2db21195200.zip |
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.
Diffstat (limited to 'sys/dev/ic/ath.c')
0 files changed, 0 insertions, 0 deletions