2002-11-21 22:36:25

by Rik van Riel

[permalink] [raw]
Subject: [PATCH] advansys.c buffer overflow


The Stanford checker found an error in advansys.c, the driver
is accessing field 6 in an array[6]. Since this is the only
place where this field is accessed it should be safe to simply
remove this line.

===== drivers/scsi/advansys.c 1.18 vs edited =====
--- 1.18/drivers/scsi/advansys.c Tue Oct 15 16:13:00 2002
+++ edited/drivers/scsi/advansys.c Wed Nov 20 01:00:08 2002
@@ -5100,7 +5100,6 @@
ep->adapter_info[3] = asc_dvc_varp->cfg->adapter_info[3];
ep->adapter_info[4] = asc_dvc_varp->cfg->adapter_info[4];
ep->adapter_info[5] = asc_dvc_varp->cfg->adapter_info[5];
- ep->adapter_info[6] = asc_dvc_varp->cfg->adapter_info[6];

/*
* Modify board configuration.