aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/server.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-08-17 10:52:20 +0000
committerNeal H. Walfield <[email protected]>2015-08-20 12:16:27 +0000
commitc5da750cf3d53277fe6d86776bfe0d2304b05151 (patch)
tree0e001abbf144ecb776553c02325c13860509977c /dirmngr/server.c
parentcommon/iobuf.c:iobuf_write_temp: Elide redundant code. (diff)
downloadgnupg-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