Home GnuPG
Diffusion GnuPG 827cc922d84d

common/iobuf.c: Buffered data should not be processed by new filters.
827cc922d84dUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common/iobuf.c: Buffered data should not be processed by new filters.

* common/iobuf.c (iobuf_push_filter2): If the pipeline is an output or
temp pipeline, the new filter shouldn't assume ownership of the old
head's internal buffer: the data was written before the filter was
added.
* common/t-iobuf.c (double_filter): New function.
(main): Add test cases for the above bug.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 17 2015, 11:56 AM
Parents
rG616181f3c757: common/iobuf.c: Flush the pipeline in iobuf_temp_to_buffer.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG827cc922d84d: common/iobuf.c: Buffered data should not be processed by new filters. (authored by Neal H. Walfield <neal@g10code.com>).Aug 20 2015, 2:16 PM