summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-16/+16
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25274: Attempt to fix RPC-SAMBA3-GETUSERNAMEVolker Lendecke1-2/+2
(This used to be commit f6f64cf0b51f2fb841bd1c0f800c66114c213577)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23662: According to simo, check_dos_char is neededVolker Lendecke1-1/+51
(This used to be commit c195eccefea69c17169c350a13bbfe845fc6fc44)
2007-10-10r23660: Anybody know what check_dos_char() was used for? It wasn't called atVolker Lendecke1-51/+1
all, so it's gone. With it 8k bss went away. (This used to be commit 7e9a4c39a5ce620f8eac74d0ae4dd80b96c81aca)
2007-10-10r20361: Prevent strnlen_w reading beyond max. ValgrindJeremy Allison1-1/+1
found by Volker. Jeremy (This used to be commit 08d551163c9563bd02acd437bc1a1595e7939cee)
2007-10-10r18793: Fix BE string handling in the auto-generatedJeremy Allison1-2/+2
code. Should now work again with ASU. Jeremy. (This used to be commit 53e97bf92817b6cfc3f93c999a81ef8ad49a1609)
2007-10-10r17316: More C++ warnings -- 456 leftVolker Lendecke1-6/+8
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
2007-10-10r16420: Fix Klocwork #1674. Null deref.Jeremy Allison1-4/+8
Jeremy. (This used to be commit f5dddf339ee3a867e21f34a81bd0b33195b7397d)
2007-10-10r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ↵Gerald Carter1-1/+38
ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms) (This used to be commit 1e0b79e591d70352a96e0a0487d8f394dc7b36ba)
2007-10-10r14387: Try and fix the coverity issues (#53, #54) with negativeJeremy Allison1-2/+2
sink by ensuring all uses of rpcstr_push are consistent with a size_t dest size arg. Jeremy. (This used to be commit f65d7afe1977d9d85046732842f9643716c15088)
2007-10-10r13521: Implement LOOKUPNAME3 and 4.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 6ec0e9124a1a7b19c9853b8e26075cbbb8751f10)
2007-10-10r13316: Let the carnage begin....Gerald Carter1-10/+4
Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
2007-10-10r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")Jeremy Allison1-0/+56
and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy. (This used to be commit c2752347eb2deeb2798c580ec7fc751a847717e9)
2007-10-10r11706: Implement dsr_getdcname client code. It's handy: It not only gives ↵Volker Lendecke1-0/+28
you the IP address but also the fqdn of the remote dc and site info. Volker (This used to be commit 62d01ce7e6c14971084c208ab61f379cb172cb22)
2007-10-10r9780: Clean up a bunch of compiler warnings.James Peach1-2/+3
(This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7)
2007-10-10r9271: Fix problems with german umlauts - strcmp_w was broken (needs to ↵Jeremy Allison1-4/+4
always re-call macro on termination). Fix all other cases where this was also occurring. Jeremy. (This used to be commit 816e2fbb39b544b7f62d5351f3a8e0af63717227)
2007-10-10r8928: Fix mangle method = hash - bugid #2946. Incorrect strcmp_wa andJeremy Allison1-2/+2
strncmp_wa. Jeremy. (This used to be commit 604c1b239bca316f7afaf76b1a586c638f3a2562)
2007-10-10r8795: fix our perpetual motion maching in strncpy_w()Gerald Carter1-1/+1
(This used to be commit 3228e93ef2beda6f3551b2630e48db18bafd2e20)
2007-10-10r8762: Attempt to fix the winbindd crashing bug on Solaris (can't rememberJeremy Allison1-113/+253
the bugid). Make the functions in lib/util_unistr.c odd-alignment safe using some evil macros. Needs testing on bigendian. Jeremy. (This used to be commit 871c647bc3ee465e613cba260d9cd7e66e47b68a)
2007-10-10r7139: trying to reduce the number of diffs between trunk and 3.0; changing ↵Gerald Carter1-7/+7
version to 3.0.20pre1 (This used to be commit 9727d05241574042dd3aa8844ae5c701d22e2da1)
2007-10-10r6965: Remove some dead code from util_unistr.c.Jeremy Allison1-16/+0
Start of fix for #2735 - we are not mangling some names we should. More fixes to follow. Jeremy. (This used to be commit ac0fa973774c36b72863aea369e9d243cf7420fa)
2007-10-10r6231: Herb, I think this checkin was a mistake. Are you sure this isGerald Carter1-1/+1
what you meant to change? Fix build breakage.... (This used to be commit b3643b732ba35af6e329dbda82bb05da81e5da64)
2007-10-10r6230: don't know how this ever worked! the compiler complained weHerb Lewis1-1/+1
were comparing an integer to a pointer and it was right. (This used to be commit b6117dd72de1f2a8e158d1a5f2b2991ef93deb72)
2007-10-10r6149: Fixes bugs #2498 and 2484.Derrell Lipman1-7/+7
1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task. (This used to be commit 994694f7f26da5099f071e1381271a70407f33bb)
2007-10-10r6014: rather large change set....Gerald Carter1-12/+13
pulling back all recent rpc changes from trunk into 3.0. I've tested a compile and so don't think I've missed any files. But if so, just mail me and I'll clean backup in a couple of hours. Changes include \winreg, \eventlog, \svcctl, and general parse_misc.c updates. I am planning on bracketing the event code with an #ifdef ENABLE_EVENTLOG until I finish merging Marcin's changes (very soon). (This used to be commit 4e0ac63c36527cd8c52ef720cae17e84f67e7221)
2007-10-10r5431: couple of cimpile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS ↵Gerald Carter1-8/+16
2341 & 2342 (This used to be commit 0edcfc7fa20fd8e3273b29c8f1a97cb7c7179fb6)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-7/+7
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r4032: Fix bug #2110 - ensure we convert to ucs2 correctly.Jeremy Allison1-10/+0
Jeremy. (This used to be commit a1e5a2a6ab1abc9add7a606e2e3f2d6c88dcf96c)
2007-10-10r570: Remove lots of globals to handle case issues - move themJeremy Allison1-6/+6
to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy. (This used to be commit 578a508509d21226ad3332fc54c3ab54cd8ae452)
2004-03-11Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison1-2/+2
"allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
2003-09-25Fix for #480. Change the interface for init_unistr2 to not take a lengthJeremy Allison1-5/+7
but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. This is not the case. Count it after conversion. Jeremy. (This used to be commit f82c273a42f930c7152cfab84394781744815e0e)
2003-09-22fix some warnings found by the Sun C compilerGerald Carter1-1/+1
(This used to be commit e1fac713e25692a5790c3261ba323732930f5249)
2003-07-27When removing an 'unused' function, it helps to remove the 'unused' callers...Andrew Bartlett1-76/+0
Andrew Bartlett (This used to be commit 605a89493e971f653413b06eda4bbca75029072b)
2003-07-02Added fix for Japanese case names in statcache - these can changeJeremy Allison1-2/+29
size on upper casing. Based on patch from monyo@home.monyo.com. Jeremy. (This used to be commit 72e382e99b92666acdaf50a040b14aa16d48b80d)
2003-04-23Patch by Metze to ensure that we always at least initialize our output stringAndrew Bartlett1-1/+4
for rpc_pull_string. If we had a NULL or zero-length string, we would use uninitialised data in the result string. Andrew Bartlett (This used to be commit df10aee451b431a8a056a949a98393da256185da)
2003-04-04check_dos_char: Change this to use a lazily-initialized lookup tableMartin Pool1-3/+49
indicating which characters are valid dos characters. This function was previously quite slow because it did two unicode conversions on every call. (This used to be commit e4ec19e03f95fb7d5b170c7e0ab5837ebc7dcd97)
2003-04-04check_dos_char: Export this function so that it can be tested inMartin Pool1-1/+1
isolation by a test case. (This used to be commit 52520fda6a168132239e2adae963a766ec653348)
2003-02-27Merge 1.100 patch from HEAD:Martin Pool1-8/+15
init_valid_table: Fix a memory leak that would lose the dynamically-created valid table every time the configuration was reloaded. (This used to be commit 3ff4845bc43736bfa091419c80b9a0ebdc9d156e)
2003-02-24Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett1-3/+10
Andrew Bartlett (This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)
2003-01-29Return 0 instead of crashing when a NULL source string is passedJeremy Allison1-0/+1
to rpcstr_pull() - merge from HEAD (tpot). Jeremy. (This used to be commit e781388c59d694058576529fb43f861c48011091)
2002-11-08patches from UrbanGerald Carter1-0/+2
(This used to be commit 850b185a6e33fa924fa59cdd6316c9160ba65270)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-0/+10
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-0/+41
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-03-26OpenPrinter() merge from 2.2Gerald Carter1-0/+32
(This used to be commit 619397cc90549d4602ecddc25ee50eb247c913ee)
2002-03-21must use native endian index when creating default valid.dat table so itHerb Lewis1-2/+2
is the same on big and little endian systems. (This used to be commit 6fa09ee88143882abcc51de05002261db767d775)
2002-03-06fixed the upper/lower case table generation on big-endian machinesHerb Lewis1-9/+26
(tridge, using Herbs console) (This used to be commit e5d80779a384c9a806fc545032330f760d8c11cb)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-20fixed warnings on irix and crash bug on big endian machinesAndrew Tridgell1-1/+5
(This used to be commit cc6c263993eaf0715f231fc80ca7e6e65694548b)