akallabeth
4f7114a140
[winpr,crt] Added ConvertMszUtf8NToWChar*
...
A conversion function that can handle multistrings (e.g. each element is
'\0' delimited, termination is '\0\0')
2022-11-28 10:42:36 +01:00
akallabeth
5c91c30a18
[winpr,crt] Added new unicode conversion functions
...
* Added functions converting WCHAR to/from UTF-8 with given buffers
and proper size_t arguments to have a centralized check for
integer overflows on RDP deserialization
* Added allocating functions converting WCHAR to/from UTF-8 as
convenience
2022-11-28 10:42:36 +01:00
akallabeth
5ae159303f
[winpr,crt] Added unicode conversion backends
...
* Support apple with NSString
* Support android via JNI
* Split ICU to own file
2022-11-28 10:42:36 +01:00
akallabeth
113290c35c
[winpr,string] Use size_t arguments
...
* Use size_t arguments for ByteSwapUnicode, ConvertLineEndingToLF
and ConvertLineEndingToCRLF
* Simplify code of line conversion functions
2022-11-28 10:42:36 +01:00
Armin Novak
6ed50b4b1d
Refactored WinPR includes
2022-03-03 11:26:48 +01:00
Armin Novak
5afa592244
Fixed cast-qual warnings
2021-08-24 11:10:51 +02:00
akallabeth
e15684cb14
Fixed a ConvertToUnicode issue and added a unit test
2021-02-09 16:10:42 +01:00
akallabeth
bc0a2c277d
Silence valgrind in unicode conversion functions
...
Only check destination buffer for NULL if length argument did not
already indicate the buffer needs to be allocated.
2020-05-08 11:04:03 +02:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
f01e042211
Code cleanups (strlen, casts, size_t, ...)
2019-10-29 11:58:43 +01:00
Armin Novak
9566ae0e90
Fixed mac compilation warnings.
2019-02-21 17:30:12 +01:00
Armin Novak
609a4eb6ae
Fixed ICU support for CP_ACP
2018-01-16 10:37:19 +01:00
Armin Novak
f143fcc298
Fixed data type, eliminate warning.
2017-08-16 15:45:11 +02:00
Armin Novak
1868acb0ac
Using ICU instead of custom unicode conversion.
...
If WITH_ICU CMake option is set the unicode conversion routines
use ICU instead of custom conversion code.
2017-07-26 13:00:45 +02:00
David Fort
b33371fe65
Fixed typo
2017-03-21 10:31:21 +01:00
Armin Novak
6900b5eb77
Fixed scanbuild warnings.
2017-02-20 14:32:54 +01:00
Marc-André Moreau
ceefc4b099
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2016-03-07 10:19:50 -05:00
Norbert Federa
ef4b29e5b3
ConvertFromUnicode fixes and misc hardening
...
- Added missing ConvertFromUnicode checks
- If ConvertToUnicode allocates memory, guarantee the null termination
similar to ConvertFromUnicode's implementation
- Fixed some TestUnicodeConversion.c CTest return values
- Added some CTests for ConvertFromUnicode and ConvertToUnicode
- Misc code and protocol hardening fixes in the surrounding code regions
that have been touched
2016-03-03 16:56:19 +01:00
Marc-André Moreau
d0f413db12
winpr: initial port to Universal Windows Platform (UWP)
2016-02-05 16:28:45 -05:00
Marc-André Moreau
f6b3b24c22
winpr: add new line ending, utf16 byte order swap functions
2014-10-16 18:07:44 -04:00
Marc-André Moreau
1b93dca6c0
libwinpr-sspi: add support for querying user+domain and setting NTLM hash
2014-06-10 16:38:16 -04:00
Marc-André Moreau
a37c6bb653
libwinpr-sspi: fix build on Linux
2014-06-07 16:46:32 -04:00
Marc-André Moreau
220f885774
libwinpr-sspi: code hardening
2014-06-06 17:20:34 -04:00
Armin Novak
a55afb58a4
Fixed coverity issue 1047634
2013-09-05 12:14:31 +02:00
Vic Lee
b3d34f62dc
libwinpr-crt: add extra null-terminator for ConvertFromUnicode.
2012-12-19 22:03:31 +08:00
Marc-André Moreau
a02090c09b
libfreerdp-utils: fix unicode conversion
2012-12-16 23:00:40 -05:00
Marc-André Moreau
15eb66a707
libwinpr-crt: document usage of unicode functions
2012-12-16 20:44:40 -05:00
Marc-André Moreau
136fd5da45
libwinpr-crt: fix unicode conversion null termination
2012-12-16 17:48:35 -05:00
Marc-André Moreau
d7bae41092
libwinpr-crt: improve UTF conversion efficiency
2012-12-16 16:51:05 -05:00
Marc-André Moreau
36a1683a5d
libwinpr-crt: initial WideCharToMultiByte and MultiByteToWideChar replacement implementation
2012-12-16 16:21:48 -05:00