FILE *fd; int DoesTemplateExist(char *pathtohtwfile)
{ // Just in case inetinfo.exe passes too long a string // let's make sure it's of a suitable length and not // going to open a buffer overrun vulnerability char *file; file = (char *)malloc(250); strncpy(file,pathtohtwfile,250); fd = fopen(file,"r"); // Success if(fd !=NULL) { return 1; } // failed else { return 0; } }
解決方案: 不使用index server功能的用戶,可以在IIS管理控制臺中,點 web站點,屬性,選擇主目錄,配置(起始點),應(yīng)用程序映射, 將htw與webhits.dll的映射刪除。 如果要用到webhits.dll,則使用下面的補丁: Index Server 2.0(Intel機器)的補丁 Index Server 2.0(Alpha機器)的補丁 Windows2000的Index Server服務(wù)補丁