[PATCH 1/2] qedi: Correct the size of target name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is potential buffer overflow while getting the target
name from the NVRAM. Correct the size of the buffer to avoid
overflow.

Signed-off-by: Nilesh Javali <nilesh.javali@xxxxxxxxxx>
---
 drivers/scsi/qedi/qedi_iscsi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/qedi/qedi_iscsi.h b/drivers/scsi/qedi/qedi_iscsi.h
index 1126077..d690330 100644
--- a/drivers/scsi/qedi/qedi_iscsi.h
+++ b/drivers/scsi/qedi/qedi_iscsi.h
@@ -225,7 +225,7 @@ struct qedi_work_map {
 
 struct qedi_boot_target {
 	char ip_addr[64];
-	char iscsi_name[255];
+	char iscsi_name[256];
 	u32 ipv6_en;
 };
 
-- 
1.8.3.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux