Skip to content
Tcl Source Code History Of Ticket 218888
Login

History Of Ticket 218888

Artifacts Associated With Ticket 218888

  1. Ticket change [2d93b77e2c] (rid 119088) by nobody on 2000-10-26 01:07:14:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2539 Bug
      Version: 8.2b2
      SubmitDate: '1999-08-12'
      LastModified: '1999-09-20'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      Machine: Other
      FixedDate: '1999-09-20'
      FixedInVersion: 8.3b1
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Hemang Lavana
      
      
      CustomShell:
      
      Modified the function CheckVersion to flag an error whenever two consecutive dots appear in a version number.
      
      
      Comments:
      
      This problem is also present in 8.0.5.
      
      
      ReproducibleScript:
      
      The command "package provide test 1.0..1" runs successfully without any
      
          errors, even though the version number has two consecutive dots in it.
      
      
      DesiredBehavior:
      
      An error should be reported, when a package version number is specified
      
          with consecutive dots in it (ex: 1.0..1).
      
      
      Patch:
      
      *** tclPkg.c-org        Thu Aug 12 09:06:27 1999
      
      --- tclPkg.c    Thu Aug 12 09:51:07 1999
      
      ***************
      
      *** 871,884 ****
      
                                       * by dots. */
      
        {
      
            char *p = string;
      
      
            if (!isdigit(UCHAR(*p))) {        /* INTL: digit */
      
              goto error;
      
            }
      
            for (p++; *p != 0; p++) {
      
      !       if (!isdigit(UCHAR(*p)) && (*p != '.')) { /* INTL: digit */
      
                  goto error;
      
              }
      
            }
      
            if (p[-1] != '.') {
      
              return TCL_OK;
      
      --- 871,888 ----
      
                                       * by dots. */
      
        {
      
            char *p = string;
      
      +     char prevChar;
      
      
            if (!isdigit(UCHAR(*p))) {        /* INTL: digit */
      
              goto error;
      
            }
      
      +     prevChar = *p;
      
            for (p++; *p != 0; p++) {
      
      !       if (!isdigit(UCHAR(*p)) &&
      
      !               ((*p != '.') || (prevChar == '.'))) { /* INTL: digit */
      
                  goto error;
      
              }
      
      +         prevChar = *p;
      
            }
      
            if (p[-1] != '.') {
      
              return TCL_OK;
      
      
      PatchFiles:
      
      tclPkg.c
      
      
      
      
      Added to 8.3b1 with tests. 
      -- 09/20/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Package version numbers not validated correctly"
    11. type initialized to: "Bug"
  2. Ticket change [f97e80f791] (rid 91719) by welch on 2000-10-26 08:31:14:

    1. closedate changed to: "2000-10-26T01:31:14"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [bacc0a46c7] (rid 129378) by dgp on 2001-04-19 00:35:55:

    1. closedate changed to: "2001-04-18T17:35:55"
    2. closer changed to: "dgp"
    3. subsystem changed to: "39. Package Manager"