1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/util/charset
Christof Schmitt via samba-technical 3430c9c3c2 lib:charset: Fix error messages from charset conversion
When e.g. trying to access a filename through Samba that does not adhere
to the encoding configured in 'unix charset', the log will show the
encoding problem, followed by "strstr_m: src malloc fail". The problem
is that strstr_m assumes that any failure from push/pull_ucs2_talloc is
a memory allocation problem, which is not correct.

Address this by removing the misleading messages and add a missing
message in convert_string_talloc_handle.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-07-07 13:41:09 +02:00
..
tests charset/tests: also tests the system str[n]casecmp() 2017-09-14 22:30:20 +02:00
charset_macosxfs.c lib:util: Add FALL_THROUGH statements in charset/charset_macosxfs.c 2018-03-01 04:37:41 +01:00
charset_proto.h s3: Fix fn signatures in charset_macosx.c 2011-12-25 13:31:58 +01:00
charset.h lib:charset: Make global_iconv_handle private 2017-04-18 11:47:17 +02:00
codepoints.c lib:charset: Remove use of talloc_autofree_context() for global_iconv_handle 2017-04-18 11:47:17 +02:00
convert_string.c lib:charset: Fix error messages from charset conversion 2018-07-07 13:41:09 +02:00
iconv.c util/charset/iconv: use read_hex_bytes rather than sscanf 2018-05-31 01:57:16 +02:00
pull_push.c util: Fix the documentation of push_utf8_talloc() 2016-09-09 00:32:12 +02:00
util_str.c lib:charset: Fix error messages from charset conversion 2018-07-07 13:41:09 +02:00
util_unistr_w.c charset: Avoid compiler warnings with --enable-developer 2014-09-19 18:11:11 +02:00
util_unistr.c CVE-2015-5330: strupper_talloc_n_handle(): properly count characters 2015-12-09 17:19:52 +01:00
weird.c
wscript_build charset: Remove unused iconv_talloc() 2012-02-10 16:45:11 +11:00
wscript_configure util:charset: Return EILSEQ in smb_iconv() if newer libc is detected 2017-02-01 05:16:46 +01:00