Artifacts Associated With Ticket 528284ffffffffff
Ticket change [cddd9f8b01] (rid 95961) by mdejong on 2002-03-10 23:52:46:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I noticed that Tcl is not able to make it through the tests in winFCmd.test without crashing or going into an infinite loop under Windows 98. I created this patch, which fixes the crashes and returns ENOENT when a path like "" is passed in. The comments for these functions state that ENOENT should be returned, but I am not sure that jives with the test cases in winFCmd.test. I would ask that someone run the tests in winFCmd.test under NT to see if this patch changes any of the test results. Further changes to the expected test results may be needed, but I am not sure how the 98/NT thing plays into it just now. Also, this patch changes a check that looked like so: if (tclWinProcs->useWide) { if (((WCHAR *) nativePath)[0] == '\0') { Tcl_SetErrno(ENOENT); return TCL_ERROR; } } else { if (((char *) nativePath)[0] == '\0') { Tcl_SetErrno(ENOENT); return TCL_ERROR; } } to: if (nativePath == NULL || nativePath[0] == '\0') { Tcl_SetErrno(ENOENT); return TCL_ERROR; } I could not see any reason to make this extra useWide check, so I took a peek at the generated ASM: 9: cond = ((WCHAR *) path[0] == '\0'); 0040102A mov eax,dword ptr [path] 0040102D movsx ecx,byte ptr [eax] 00401030 neg ecx 00401032 sbb ecx,ecx 00401034 inc ecx 00401035 mov dword ptr [cond],ecx 10: } else { 00401038 jmp main+38h (00401048) 11: cond = ((char *) path[0] == '\0'); 0040103A mov edx,dword ptr [path] 0040103D movsx eax,byte ptr [edx] 00401040 neg eax 00401042 sbb eax,eax 00401044 inc eax 00401045 mov dword ptr [cond],eax The code certainly looks exactly the same, except for the registers that are used. Since I could not come up with any reason for this extra complexity, I removed it. - foundin initialized to: "None"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mdejong"
- subsystem initialized to: "37. File System"
- title initialized to: "Fix filesystem crashed under win98"
- type initialized to: "Patch"
Ticket change [0f38609d76] (rid 94749) by mdejong on 2002-03-11 06:52:46:
- icomment:
File Added - 19130: win_fs.patch
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Add attachment "win_fs.patch" [d68216cfa4] (rid 123817) by mdejong on 2002-03-11 06:52:46.
Ticket change [ecfdbe64c8] (rid 103807) by nobody on 2002-03-11 21:21:37:
- icomment:
Logged In: NO The patch looks good to me -- feel free to apply -- Vince.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [ad8598f97e] (rid 101481) by mdejong on 2002-03-12 18:34:24:
- closedate changed to: "2002-03-12T11:34:24"
- closer changed to: "mdejong"
- icomment:
Logged In: YES user_id=90858 I looked over the winFCmd.test tests that were failing under 98 and I am convinced they have nothing to do with this "" patch. I will create another patch to deal with them. Added to CVS on 2002-03-11.
- login: "mdejong"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "mdejong"