f5982bb5b0a704e88fa2b44b0b74e365d13103b9 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: If two istreams share one parent, i_stream_get_data() may have returned corrupted data to another.
This happened only for istreams that used parent's buffer directly instead
of having their own buffer. For now at least we've solved this by truncating
the other stream's buffer so it needs to be read again. Hopefully this is
good enough.
Added also unit test to check this functionality. |