mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
vfs_fruit: ensure the buffer passed to file_lines_parse() is 0-terminated
Otherwise valgrind complains... Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
616b64c362
commit
4389ae9ca0
@ -4755,7 +4755,9 @@ static bool fruit_get_bandsize(vfs_handle_struct *handle,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
file_data = talloc_array(talloc_tos(), uint8_t, plist_file_size);
|
file_data = talloc_zero_array(talloc_tos(),
|
||||||
|
uint8_t,
|
||||||
|
plist_file_size + 1);
|
||||||
if (file_data == NULL) {
|
if (file_data == NULL) {
|
||||||
ok = false;
|
ok = false;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user