1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/librpc/tests
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
..
test_ndr_dns_nbt.c CVE-2020-10745: librpc/tests: cmocka tests of dns and ndr strings 2020-07-02 09:01:41 +00:00
test_ndr_gmsa.c librpc: Change type of ‘u16string’ from ‘const uint16_t *’ to ‘const unsigned char *’ 2023-12-21 23:48:46 +00:00
test_ndr_macros.c librpc/tests: make use of replace.h in test_ndr*.c 2020-03-27 09:02:37 +00:00
test_ndr_string.c librpc/ndr: Add support for LIBNDR_FLAG_STR_NO_EMBEDDED_NUL 2023-11-13 01:28:36 +00:00
test_ndr.c librpc/tests: make use of replace.h in test_ndr*.c 2020-03-27 09:02:37 +00:00