diff options
author | Neal H. Walfield <[email protected]> | 2015-08-17 10:52:20 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-08-20 12:16:27 +0000 |
commit | c5da750cf3d53277fe6d86776bfe0d2304b05151 (patch) | |
tree | 0e001abbf144ecb776553c02325c13860509977c /dirmngr/server.c | |
parent | common/iobuf.c:iobuf_write_temp: Elide redundant code. (diff) | |
download | gnupg-c5da750cf3d53277fe6d86776bfe0d2304b05151.tar.gz gnupg-c5da750cf3d53277fe6d86776bfe0d2304b05151.zip |
common/iobuf.c: Add some sanity checks to catch programmer bugs.
* common/iobuf.c (iobuf_alloc): Check that BUFSIZE is not 0.
(iobuf_readbyte): Check that A is an input filter. Check that the
amount of read data is at most the amount of buffered data.
(iobuf_read): Check that A is an input filter.
(iobuf_writebyte): Check that A is not an input filter.
(iobuf_writestr): Check that A is not an input filter.
(iobuf_flush_temp): Check that A is not an input filter.
--
Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to 'dirmngr/server.c')
0 files changed, 0 insertions, 0 deletions