Skip to content
Tcl Source Code History Of Ticket 5bbd044812bdb410
Login

History Of Ticket 5bbd044812bdb410

Artifacts Associated With Ticket 5bbd044812bdb410

  1. Ticket change [516420bba8] (rid 183584) by anonymous on 2020-05-27 13:28:55:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      From 3f0d4884b97007112100a18e4a3cb95b193a1dec Mon Sep 17 00:00:00 2001
      From: Andreas Schwab <[email protected]>
      Date: Wed, 27 May 2020 15:18:19 +0200
      Subject: [PATCH] Fix index underflow
      
      ---
       generic/tclFileName.c | 4 ++--
       1 file changed, 2 insertions(+), 2 deletions(-)
      
      diff --git a/generic/tclFileName.c b/generic/tclFileName.c
      index 7ff7eecae..5e7b70dbe 100644
      --- a/generic/tclFileName.c
      +++ b/generic/tclFileName.c
      @@ -2448,7 +2448,7 @@ DoGlob(
       		size_t len;
       		const char *joined = TclGetStringFromObj(joinedPtr,&len);
       
      -		if (strchr(separators, joined[len-1]) == NULL) {
      +		if (len != 0 && strchr(separators, joined[len-1]) == NULL) {
       		    Tcl_AppendToObj(joinedPtr, "/", 1);
       		}
       	    }
      @@ -2485,7 +2485,7 @@ DoGlob(
       	    size_t len;
       	    const char *joined = TclGetStringFromObj(joinedPtr,&len);
       
      -	    if (strchr(separators, joined[len-1]) == NULL) {
      +	    if (len != 0 && strchr(separators, joined[len-1]) == NULL) {
       		if (Tcl_FSGetPathType(pathPtr) != TCL_PATH_VOLUME_RELATIVE) {
       		    Tcl_AppendToObj(joinedPtr, "/", 1);
       		}
      -- 
      2.26.2
      
    5. foundin initialized to: "any"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "16. Commands A-H"
    14. title initialized to: "Fix index underflow"
    15. type initialized to: "Bug"
  2. Ticket change [13944650b7] (rid 184912) by jan.nijtmans on 2020-07-16 13:45:08:

    1. assignee changed to: "jan.nijtmans"
    2. icomment: "Fixed now in core-8-6-branch and up."
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [359a790df3] (rid 184913) by jan.nijtmans on 2020-07-16 13:46:45:

    1. closedate changed to: "2459047.07413969"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"