common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
authorNeal H. Walfield <neal@g10code.com>
Wed, 12 Aug 2015 00:19:05 +0000 (02:19 +0200)
committerNeal H. Walfield <neal@g10code.com>
Thu, 20 Aug 2015 12:16:19 +0000 (14:16 +0200)
commit4e32c602f5c40cca5f8f40e642ccb10d3f8c5614
tree4cbf3b36a560b9f46ec136cdc27294cde5185f52
parentfa9fda23c2c8cf6982b7263f6882ed8687d98c16
common/iobuf.c: Better respect boundary conditions in iobuf_read_line.

* common/iobuf.c (iobuf_read_line): Be more careful with boundary
conditions.
* common/iobuf.h: Include <gpg-error.h>.
* common/t-iobuf.c: New file.
* common/Makefile.am (module_tests): Add t-iobuf.
(t_mbox_util_LDADD): New variable.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
common/Makefile.am
common/iobuf.c
common/iobuf.h
common/t-iobuf.c [new file with mode: 0644]