diff options
author | Volker Lendecke <vl@samba.org> | 2021-01-12 11:19:54 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2021-01-14 13:29:35 +0000 |
commit | 5ef25729bd9e6dc455d158c0016b2bd6191e8d51 (patch) | |
tree | 0582bfef6bc91688b1642131546c0538e0ebd961 /lib/tdb | |
parent | da052dde8a9801063e74d036d15f516d079d3720 (diff) | |
download | samba-5ef25729bd9e6dc455d158c0016b2bd6191e8d51.tar.gz |
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 <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/tools/tdbrestore.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |