1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

tests: Make sure to pass right type to buffer_pack

For some reason, the mingw64 builds were failing on these inputs quite reliably
as the passed value was interpretted as a value larger than UINT32_MAX.

This was not caught before because the value is casted from size_t to uint32_t
implicitly so the MSBs were not affecting the result.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2024-12-19 17:32:48 +01:00
parent b7018c17c7
commit 8bf908a56f
2 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ static void *thread_ssh_buffer_add_format(void *threadid)
q,
s,
"rocks",
7,
(size_t)7,
"So much",
"Fun!");
assert_int_equal(rc, SSH_OK);