From: Volker Lendecke Date: Tue, 12 Jan 2021 10:19:54 +0000 (+0100) Subject: tdb: Fix CID 1471761 String not null terminated X-Git-Tag: samba-4.14.0rc1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ef25729bd9e6dc455d158c0016b2bd6191e8d51;p=thirdparty%2Fsamba.git tdb: Fix CID 1471761 String not null terminated This is a false positive (in is length 3 initialized to 0), but this patch does not hurt Signed-off-by: Volker Lendecke Reviewed-by: Samuel Cabrero --- diff --git a/lib/tdb/tools/tdbrestore.c b/lib/tdb/tools/tdbrestore.c index 3312cf74d83..1435758b580 100644 --- a/lib/tdb/tools/tdbrestore.c +++ b/lib/tdb/tools/tdbrestore.c @@ -89,7 +89,7 @@ static int read_data(FILE *f, TDB_DATA *d, size_t size) { } ok = hex_byte(in, &d->dptr[i]); if (!ok) { - fprintf(stderr, "Invalid hex: %s\n", in); + fprintf(stderr, "Invalid hex: .2%s\n", in); return -1; } } else {