1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Volker Lendecke 2021-01-12 11:19:54 +01:00
parent da052dde8a
commit 5ef25729bd

View File

@ -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 {