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

History Of Ticket 3609575fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3609575fffffffffffffffffffffffffffffffff

  1. Ticket change [3c401e56f0] (rid 120887) by anonymous on 2013-03-30 23:20:07:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I am using ActiveState Tcl for 32bit and 64bit Linux. 
      The command is:
      sha2::sha256 -hex tk
      
      The output is:
      32bit Linux:
      0b9422c2ca451b24fea81114412fb2c61e2ced68889466119b72d36c4ec3c337
      
      64bit Linux:
      1ec22d56dbbc91e849b00643bc4f10eb764441c93bde5c6090fe81db55cf6932
      
      When using any web based sha256 generators the output is:
      1ec22d56dbbc91e849b00643bc4f10eb764441c93bde5c6090fe81db55cf6932
      
      Therefore, 32bit sha256 output seems to be incorrect. 
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. subsystem initialized to: "55. Other Tools"
    10. title initialized to: "sha256 output is wrong on 32bit Linux "
    11. type initialized to: "Bug"
  2. Ticket change [c5e7eeccbb] (rid 121666) by dkf on 2013-03-31 23:32:39:

    1. assignee changed to: "andreas_kupries"
    2. closedate changed to: "2013-03-31T16:32:39"
    3. closer changed to: "dkf"
    4. icomment:
      That's probably a bug in the sha256 code, which is part of tcllib (and not part of tcl properly). Assigning to the master of tcllib for confirmation...
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Pending"
    9. username: "dkf"
  3. Ticket change [77d59600aa] (rid 89842) by ferrieux on 2013-04-01 03:58:08:

    1. icomment:
      A cursory look at the code reveals the use of constants like this:
      
          expr {int(0xc1059ed8)}
      
      But since int() is the tricky, platform-dependent "truncate to machine word" operator, its result (and sign extension thereof, in this specific case) will suffer when moving from 32 to 64 bits architectures.
      I'd risk that using wide() instead of int() throughout the package should make it robustly behave like the 64-bit version (which is supposed to be the good one according to this report).
      
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [4a240300f4] (rid 126485) by anonymous on 2013-04-01 04:51:13:

    1. icomment:
      The sha256 package uses the accelerated compiled code from the tcllibc package. When forced to plain Tcl, the output is correct, changing int() to wide() does not make any difference. So, the problem is within the tcllibc package. 
      
      
    2. login: ""
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: ""
  5. Ticket change [710397e72a] (rid 100591) by ferrieux on 2013-04-01 15:25:58:

    1. icomment:
      Thanks for this critical precision, will dig ;)
      Also note that both the pure-Tcl and the accelerated variants are part of the tcllib package.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  6. Ticket change [a56868eaef] (rid 110375) by andreas_kupries on 2013-04-01 23:44:56:

    1. icomment:
      Alexandre, thanks for looking into this.
      And thanks to the OS for clearing up that tcllibc is involved.
      If possible please shift this bug over to the Tcllib Tracker.
      (I.e. create a bug there with all the info, then close this one).
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [e7c5e3bf6d] (rid 104524) by anonymous on 2013-04-03 06:32:34:

    1. closedate changed to: "2013-04-02T23:32:34"
    2. closer changed to: "nobody"
    3. icomment:
      
      
      allow_comments - 1
      
      Moved the ticket over to tcllib tracker: ID: 3609843
      https://sourceforge.net/tracker/?func=detail&aid=3609843&group_id=12883&atid=112883
      
      
    4. login: ""
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: ""