Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bdf576ac79bc87c66ca69b48fdc5f3b4ee12e42fd2741fc922fa79bc74dbfab9
Ticket: cfdf80a2efc65e908271c3a27243e110c2bfc4ab
zlib stream returns negative checksums
User & Date: apnadkarni on 2024-07-11 13:46:47
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    ```
    %     set compressor [zlib stream gzip -header {comment "A zlib demo"}]
    ::tcl::zlib::streamcmd_1
    % $compressor put abcd
    % $compressor checksum
    -310194927
    ```
    
    As shown above, a negative checksum is returned although both adler-32 and crc32 are specified as unsigned 32-bit ints. In fact,
    
    ```
    % zlib crc32 abcd
    3984772369
    ```
    
    which is actually the same 32-bit pattern as -310194927.
    
    This behavior is new with 9.0 (8.6 returns 3984772369 as expected)
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "57. zlib"
  15. title changed to: "zlib stream returns negative checksums"
  16. type changed to: "Bug"