20 Sep
2022
20 Sep
'22
9:35 a.m.
On Tue Sep 20 09:35:06 2022 +0000, Huw Davies wrote:
The server can't safely rely on nul-terminated strings, so just pass `strlen( unix_name )` here (and add spaces either side of `unix_name`). You'll have to make a nul-terminated copy on the server-side to pass to `fopen`. But as I understand, if we can use strlen in unix_name, that means its a null terminated string and wine_server_add_data should append data to the server request including the null terminator, becuase of strlen( unix_name ) + 1. So in the server side we should receive that null terminator when using get_req_data_after_objattr.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/820#note_8898