1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/librpc
Joseph Sutton 346844b730 librpc: Change type of ‘u16string’ from ‘const uint16_t *’ to ‘const unsigned char *’
A u16string is supposed to contain UTF‐16 code units, but
ndr_pull_u16string() and ndr_push_u16string() fail to correctly ensure
this on big‐endian systems. Code that relies on the u16string array
containing correct values will then fail.

Fix ndr_pull_u16string() and ndr_push_u16string() to work on big‐endian
systems, ensuring that other code can use these strings without having
to worry about first encoding them to little‐endian.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-12-21 23:48:46 +00:00
..
gen_ndr
idl s4:librpc: Fix code spelling 2023-08-14 21:45:29 +00:00
ndr Use python.h from libreplace 2023-11-20 15:37:33 +00:00
rpc librpc: Change type of ‘u16string’ from ‘const uint16_t *’ to ‘const unsigned char *’ 2023-12-21 23:48:46 +00:00
scripts s4:librpc: Reformat shell scripts 2022-07-08 09:05:56 +00:00
tests python:tests: Add ndrdump test for GMSA Managed Password blobs 2023-11-20 22:51:17 +00:00
dcerpc_samr.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
dcerpc.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
wscript_build s4:librpc: Fix code spelling 2023-12-11 01:08:37 +00:00