Hi,
Below is a patch that fixes heap corruption in the via driver if the app uses a large
nr of periods (> 128).
dev->idx_table is a snd_via_sg_table array, not an integer array.
--- via82xx.c Fri Sep 13 13:22:46 2002
+++ via82xx.cn Thu Sep 19 14:41:56 2002
@@ -217,7 +217,7 @@
return -ENOMEM;
}
if (! dev->idx_table) {
- dev->idx_table = kmalloc(sizeof(unsigned int) * VIA_TABLE_SIZE,
GFP_KERNEL);
+ dev->idx_table = kmalloc(sizeof(struct snd_via_sg_table) *
+VIA_TABLE_SIZE, GFP_KERNEL);
if (! dev->idx_table)
return -ENOMEM;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel