|
|
|
|
|
by jmull
271 days ago
|
|
It shouldn't matter. Decompress's Reader shouldn't depend on the size of the buffer of the writer passed in to its "stream" implementation. So that's a bug in the Decompress Reader implementation. The article confuses a bug in a specific Reader implementation with a problem with the Writer interface generally. (If a reader really wants to impose some chunking limitation for some reason, then it should return an error in the invalid case, not go into an infinite loop.) |
|
At the very least, the API of the Readera and Writers lends itself to implementations that have this kind of bug, where they depend on the buffer being a certain size.