1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/util/charset
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
..
tests util/charset/tests: Add tests for UTF‐16 string length functions 2023-11-15 22:07:36 +00:00
charset_macosxfs.c lib:util: Fix code spelling 2023-04-14 05:25:33 +00:00
charset_proto.h s3: Fix fn signatures in charset_macosx.c 2011-12-25 13:31:58 +01:00
charset.h librpc: Change type of ‘u16string’ from ‘const uint16_t *’ to ‘const unsigned char *’ 2023-12-21 23:48:46 +00:00
codepoints.c util/charset: Remove trailing whitespace 2023-12-08 02:28:33 +00:00
convert_string.c util/charset: Remove unnecessary cast 2023-11-16 05:18:36 +00:00
iconv.c libutil/iconv: avoid overflow in surrogate pairs 2023-10-26 01:24:32 +00:00
pull_push.c lib/util/charset: @param typos 2023-10-26 01:24:32 +00:00
util_str.c lib:charset: Fix code spelling 2023-09-11 02:42:41 +00:00
util_unistr_w.c lib: Avoid "includes.h" in lib/util/charset/ 2021-01-12 00:10:30 +00:00
util_unistr.c librpc: Change type of ‘u16string’ from ‘const uint16_t *’ to ‘const unsigned char *’ 2023-12-21 23:48:46 +00:00
weird.c lib: Simplify "weird" charset code 2021-01-12 00:10:30 +00:00
wscript_build lib: Fix 'charset' dependencies 2021-01-12 01:19:26 +00:00
wscript_configure charset: add support for Unicode normalisation with libicu 2019-08-07 06:07:28 +00:00