Overview
| Artifact ID: | d26edead127d55243d6a3cadef05c36456c46c3b1cfff832a18310d7d407ea92 |
|---|---|
| Ticket: | 9ee9f4d7be4615e04f62fe22885dadce13ca4d01
zlib push/pop corrupts underlying channel |
| User & Date: | pooryorick on 2020-06-16 15:10:37 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
In the following script, the $tmpchan gains two new characters at the end each time a channel is pushed and then popped: <code><pre> #! /usr/bin/env tclsh set data hello set tmpchan [file tempfile] puts -nonewline $tmpchan $data flush $tmpchan chan configure $tmpchan -translation binary set tmpchan2 [file tempfile] chan configure $tmpchan2 -translation binary for {set i 0} {$i < 10} {incr i} { seek $tmpchan 0 end set size [chan tell $tmpchan] seek $tmpchan 0 start set data [read $tmpchan] set size2 [string length $data] seek $tmpchan 0 start zlib push deflate $tmpchan -level 6 chan truncate $tmpchan2 0 chan copy $tmpchan $tmpchan2 chan pop $tmpchan puts [list $size $size2] } close $tmpchan </pre></code> - foundin changed to: "various"
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "25. Channel System"
- title changed to: "zlib push/pop corrupts underlying channel"
- type changed to: "Bug"