1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/libcli
Noel Power 56c4815402 libcli/smb: Fix failure of Smb3UnixTests.test_create_context_reparse
On tumbleweed at least the definition in py_reparse_put of 'reserved' as
'unsigned' causes the tag value to be overwritten. Note: ParseTuple is
given a format of 'Kk' where
  K = unsigned long long (for tag)
  k = unsigned long      (for reserved)

The problem is 'reserved' is defined as 'unsigned' which on a
64 bit linux system has size 4. The size however of the 'unsigned long' type
on the same 64 bit system is 8. This causes 'tag' to be overwritten by
the value of 'reserved' because it's destination size is smaller than
expected.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15702
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Aug 28 18:38:01 UTC 2024 on atb-devel-224
2024-08-28 18:38:01 +00:00
..
auth libcli:auth: Remove unreachable code (CID 1272968) 2024-08-28 04:24:39 +00:00
cldap libcli: Don’t call memcpy() with a NULL pointer 2023-05-29 22:32:28 +00:00
dns libcli: Add missing newlines to logging messages 2023-08-08 04:39:36 +00:00
drsuapi libcli:drsuapi: Fix code spelling 2023-04-27 14:25:38 +00:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
http libcli/http: Detect unsupported Transfer-encoding type 2024-04-08 03:00:39 +00:00
ldap lib: Make GUID_to_ndr_buf() return void 2024-03-12 13:31:31 +00:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth libcli/named_pipe_auth: let tstream_npa_existing_socket use tstream_bsd_fail_readv_first_error(true) 2023-10-24 09:36:38 +00:00
nbt libcli:nbt: Initialize struct nbt_name_register 2024-07-16 11:41:33 +00:00
netlogon lib: Give lib/util/util_file.c its own header file 2024-04-16 23:51:45 +00:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
security lib: Add libcli/util/ntstatus.h in a few headers where it's needed 2024-08-27 07:19:32 +00:00
smb libcli/smb: Fix failure of Smb3UnixTests.test_create_context_reparse 2024-08-28 18:38:01 +00:00
smbreadline libcli:smbreadline: Fix code spelling 2023-06-23 13:44:31 +00:00
tstream_binding_handle remove problematic include (seems to bring in conflicted definitions) 2023-10-25 22:23:38 +00:00
util python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
wsp libcli/wsp: Test AQS parser 2023-10-25 22:23:38 +00:00