Skip to content
Tcl Source Code History Of Ticket 1602539fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1602539fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1602539fffffffffffffffffffffffffffffffff

  1. Ticket change [549a56be14] (rid 93977) by andygoth on 2006-11-25 00:53:29:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % binary scan [glob -type d tclkit] c* out; set out
      116 99 108 107 105 116
      % binary scan [glob -type d *] c* out; set out
      116 99 108 107 105 116 0
      
      On Windows this has the effect of truncating the string if passed to puts.  I haven't seen this in Linux.
      
      % puts <[glob -type d *]>
      <tclkit.exe%
      
      (the % is the next prompt; the newline never printed)
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "andygoth"
    10. subsystem initialized to: "37. File System"
    11. title initialized to:
      [glob] adds stray NUL to end of mounted VFS directory names
      
    12. type initialized to: "Bug"
  2. Ticket change [61d3754ac3] (rid 92316) by dgp on 2006-11-27 22:31:56:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      I tried to duplicate this
      with trofs to gather more
      data, and [glob -type d $pattern]
      doesn't work at all with it.
      
      Don't know yet where that
      places the flaw(s).
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [3c3ec289ea] (rid 120886) by dkf on 2006-11-28 16:14:48:

    1. priority changed to: "8"
  4. Ticket change [8e7d603b54] (rid 120117) by dgp on 2006-11-28 21:57:36:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Is this flaw seen only in
      the 8.5 development sources,
      or is it present in 8.4.14
      as well?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [1b0fc60887] (rid 123081) by hobbs on 2006-11-29 00:51:16:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      It repros for me in 8.5 head, but not 8.4.14 head.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [cf25c92df3] (rid 112918) by dgp on 2006-11-29 00:54:41:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      looks like I'm on the trail
      of a different (possibly
      related) bug then.  When I know
      more I'll open a separate report.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [4943705ede] (rid 100028) by andygoth on 2006-12-01 07:08:05:

    1. icomment:
      Logged In: YES 
      user_id=8653
      Originator: YES
      
      "I haven't seen this in Linux."  I refer to the truncation, not the bug as a whole.
      
      In plain terms, the NUL happens regardless of operating system.  I tested on both Windows and Linux operating systems and on both x86 and x86_64 architectures.
      
      The bug does not appear to be present in 8.4.
      
      
    2. login: "andygoth"
    3. mimetype: "text/plain"
    4. username: "andygoth"
  8. Ticket change [9b83dba660] (rid 111137) by hobbs on 2007-12-15 05:37:34:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      I'm not reproducing this on 8.5.0-rc and tclvfs head on XP:
      
      C:\build\vfs>make shell
      % package require vfs::zip
      1.0
      % vfs::zip::Mount C:/temp/lame.zip t
      filea2d970
      % cd t
      % glob -type d *
      ACM misc html
      % puts <[glob -type d *]>
      <ACM misc html>
      % binary scan [glob -type d *] c* out ; set out
      65 67 77 32 109 105 115 99 32 104 116 109 108
      % info patch
      8.5.0
      
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  9. Ticket change [1d0d062b36] (rid 90720) by mpc_janssen on 2007-12-15 05:54:18:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: NO
      
      I still can reproduce on XP with Tcl HEAD
      
      % info pa
      8.5.0
      % package require vfs::zip
      1.0
      % vfs::zip::Mount svn-win32-1.4.5.zip svnab
      filea13da8
      % binary scan [glob -type d *] c* out; set out
      68 105 103 101 115 116 45 80 101 114 108 45 77 68 53 45 49 46 56 32 116 99 108 1
      16 99 99 32 115 118 110 97 98 0
      % parray tcl_platform
      tcl_platform(byteOrder)   = littleEndian
      tcl_platform(machine)     = intel
      tcl_platform(os)          = Windows NT
      tcl_platform(osVersion)   = 5.1
      tcl_platform(platform)    = windows
      tcl_platform(pointerSize) = 4
      tcl_platform(user)        = mjanssen
      tcl_platform(wordSize)    = 4
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  10. Ticket change [6114964c7a] (rid 92187) by hobbs on 2007-12-15 05:56:57:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      OK, specifically it is the glob on the mounted dir itself.
      
      % vfs::zip::Mount C:/temp/lame.zip t
      filea2d970
      % glob -type d *
      t
      % puts <[glob -type d *]>
      <t >
      % binary scan [glob -type d *] c* out ; set out
      116 0
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  11. Ticket change [bc301e3157] (rid 129625) by hobbs on 2007-12-15 06:15:28:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      The bug is in bug in tclIOUtil.c:FsAddMountsToGlobResult at 1261 where the call to TclNewFSPathObj passes in the wrong size.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  12. Ticket change [c924314ec5] (rid 122232) by hobbs on 2007-12-15 06:36:55:

    1. closedate changed to: "2007-12-14T23:36:55"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      * generic/tclIOUtil.c (FsAddMountsToGlobResult): fix the tail
      conversion of vfs mounts. [Bug 1602539]
      
      The '/' handling wasn't done right on the length part.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"