]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix bttest printing of unterminated strings
authorTom Yu <tlyu@mit.edu>
Mon, 8 Aug 2016 13:12:53 +0000 (09:12 -0400)
committerTom Yu <tlyu@mit.edu>
Tue, 16 Aug 2016 19:24:27 +0000 (15:24 -0400)
commit503b912fa11db372db043a8b8fbce51e75b36eed
treeaf01505c41b79f9832857b6edc71dcc1c6580998
parentdbf6e70d04c094b6cf0ef076a62ef4ca27001183
Fix bttest printing of unterminated strings

The libdb2 btree debugging program bttest can attempt to print keys or
data that aren't null-terminated, reading past the end of the
length-counted byte array.  Use the "%.*s" format specifier to provide
an explicit length when printing keys or data.

ticket: 8478
src/plugins/kdb/db2/libdb2/test/btree.tests/main.c