Overview
Artifact ID: | e484bd5aa0568df54e9def993fd1622e65448e1e |
---|---|
Ticket: | f7654f59c6b62b0fb451f8a22bbd16c7b9c9dd66
crc::sum returns incorrect checksum on 1K data, Win 7 64-bit. |
User & Date: | anonymous 2014-03-17 19:46:34 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Using a 1024 byte input string, the resulting checksum is incorrect. I suspect the problem has to do with the sum exceeding 16 bits, and the return statement from ::crc::SumSysV is using a "%" operator rather than "&" to mask the output. Command being used: set ckSum [crc::sum -sysv -- $data] where data is a 1024 byte string. The correct checksum is returned if the data string is 128 bytes.
- foundin changed to: "SUM 1.1.0"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "2e7fb03fb66ed06254678661359741d8fe23ed8b"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
crc::sum returns incorrect checksum on 1K data, Win 7 64-bit.
- type changed to: "Bug"