Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 77d59600aa9c419b4c769fd4403e533c0931d9f8
Ticket: 3609575fffffffffffffffffffffffffffffffff
sha256 output is wrong on 32bit Linux
User & Date: ferrieux on 2013-04-01 03:58:08
Changes

  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"