|
2008-12-29
| ||
| 00:20 | • Deleted ticket [2473200fff]: zlib stream inflate input can be partly lost pl... artifact: 76fdffb17c user: muonics | |
| 00:07 | • Ticket [2473200fff]: 1 change artifact: 900f3311e3 user: dkf | |
| 00:07 | • Ticket [2473200fff]: 1 change artifact: 87d072476f user: dkf | |
|
2008-12-28
| ||
| 16:51 | • New ticket [2473200fff]. artifact: 1c958b1919 user: muonics | |
zlib stream inflate input can be partly lost
Deleted2473200fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-12-28 16:51:07
When using the streaming APIs for inflation, Tcl_ZlibStreamGet() pops a chunk of input out of inData and feeds it into inflate(). It doesn't check that all of the data is consumed by inflate() or push unprocessed data back into inData, which causes the remaining unprocessed input from that chunk to be lost. This will happen especially when reading from the stream in smaller chunks than are being fed in.
dkf Ticket [2473200fff]: 1 change
[History diff]2008-12-29 00:07:17
dkf Ticket [2473200fff]: 1 change
[History diff]2008-12-29 00:07:33
muonicsplain2008-12-29 00:20:12
More digging, looks like I'm mistaken about this one too, since it calls inflate again with remaining input the next time Tcl_ZlibStreamGet() is called (added debugging output when it pops another itemObj out of inData). oi2n0g16.png is getting errors during inflation for some other reason.
Log in (anonymous is fine) to add a comment.