lib/util: fix possible truncation in dump_data_block16()
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Sep 2023 19:42:32 +0000 (21:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 16 Oct 2023 08:23:14 +0000 (10:23 +0200)
commitcf3898ed60ef7c0e6f451cfc4afe39ee02075689
tree90f93fe76a0d41eabf661cc748d9aeb8861dd847
parent6e862bd3690c041aa061ed8f7ee1d9207381674f
lib/util: fix possible truncation in dump_data_block16()

Prefix is a 1 or 0 characters, then 64bit hex value
can take 16 charachters + '[' + ']' + '\0', means
we need a buffer of 20 characters.

The next commit will cause some code to be inlined with -O3
in use, which found this possible truncation and complained
about it.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/util/util.c