Skip to content
Tcl Source Code History Of Ticket 528284ffffffffff
Login

History Of Ticket 528284ffffffffff

Artifacts Associated With Ticket 528284ffffffffff

  1. Ticket change [cddd9f8b01] (rid 95961) by mdejong on 2002-03-10 23:52:46:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mdejong"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Fix filesystem crashed under win98"
    11. type initialized to: "Patch"
  2. Ticket change [0f38609d76] (rid 94749) by mdejong on 2002-03-11 06:52:46:

    1. icomment:
      
      
      File Added - 19130: win_fs.patch
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  3. Add attachment "win_fs.patch" [d68216cfa4] (rid 123817) by mdejong on 2002-03-11 06:52:46.

  4. Ticket change [ecfdbe64c8] (rid 103807) by nobody on 2002-03-11 21:21:37:

    1. icomment:
      Logged In: NO 
      
      The patch looks good to me -- feel free to apply 
      -- Vince.
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  5. Ticket change [ad8598f97e] (rid 101481) by mdejong on 2002-03-12 18:34:24:

    1. closedate changed to: "2002-03-12T11:34:24"
    2. closer changed to: "mdejong"
    3. 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.
      
      
    4. login: "mdejong"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "mdejong"