diff options
author | ariff <ariff@FreeBSD.org> | 2006-09-30 01:01:18 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2006-09-30 01:01:18 +0000 |
commit | ba8135e75adc40e45a4335d271169fec30e4f1b5 (patch) | |
tree | dfc9a6b31ab5facaed8095ca1f6a98011ea04db6 /sys/dev | |
parent | 930749d9ee3b320e3db9f902e3d6263bf25e9dc3 (diff) | |
download | FreeBSD-src-ba8135e75adc40e45a4335d271169fec30e4f1b5.zip FreeBSD-src-ba8135e75adc40e45a4335d271169fec30e4f1b5.tar.gz |
The addition of few more 32bit integer into struct snd_mixer causing
an accidental MIXER_SIZE overflow. Use 8bit integer instead of 32bit
to reduce the kludge size.
Noticed by: tegge
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sound/pcm/mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c index 3e31a61..1682c54 100644 --- a/sys/dev/sound/pcm/mixer.c +++ b/sys/dev/sound/pcm/mixer.c @@ -47,9 +47,9 @@ struct snd_mixer { u_int32_t recdevs; u_int32_t recsrc; u_int16_t level[32]; - u_int32_t parent[32]; + u_int8_t parent[32]; u_int32_t child[32]; - u_int32_t realdev[32]; + u_int8_t realdev[32]; char name[MIXER_NAMELEN]; struct mtx *lock; oss_mixer_enuminfo enuminfo; |