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:
parent
da052dde8a
commit
5ef25729bd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user