Commits

Michael Jimenez committed bd7605b

cdvdman: fix potential buffer overflow for long ISO filenames

  • Participants
  • Parent commits 324088d

Comments (0)

Files changed (1)

File modules/iopcore/cdvdman/cdvdman.c

 	0
 }; 
 
-static char g_DiskID[] = "B00BS";
+static char g_DiskID[] = "\0B00BS"; 	// the null byte is here to ensure the ISO name string 
+					// (stored in array above) is terminated when it's 64 bytes
 
 #ifdef SMB_DRIVER
 static char g_pc_ip[]="xxx.xxx.xxx.xxx";