summaryrefslogtreecommitdiff
path: root/tests/unit/core/test-core-string.cpp
AgeCommit message (Collapse)Author
2021-01-02core: update copyright datesSébastien Helleu
2020-10-03tests: run callback when resetting options in testsSébastien Helleu
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-05-31tests: fix memory leak in test of function string_hex_dumpSébastien Helleu
2020-05-21tests: add tests on function string_input_for_buffer with custom command charsSébastien Helleu
2020-05-21tests: add tests on function string_is_command_char with custom command charsSébastien Helleu
2020-05-21tests: add test on function string_base64_decode with truncated base64 stringSébastien Helleu
2020-05-21tests: add test on function string_base16_decode with a char >= 0xA0Sébastien Helleu
2020-05-21core: move functions string_base_encode and string_base_decode from ↵Sébastien Helleu
plugin-api.c to wee-string.c
2020-05-21core: return -1 in case of error in functions string_base16_decode and ↵Sébastien Helleu
string_base64_decode
2020-03-01core: move crypto functions to wee-crypto.c, rename API function string_hash ↵Sébastien Helleu
to crypto_hash
2020-03-01core: merge functions string_hash_binary and string_hash into a single ↵Sébastien Helleu
function string_hash
2020-02-29core: add support of CRC32 algorithm in hash functionsSébastien Helleu
2020-02-29api: add functions string_hash_binary and string_hashSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-09-17Fixed segfault during excessive evaluation.Tobias Stoeckmann
It is possible to trigger a segmentation fault while processing an evaluation of repeating string. On a Linux 64 bit system, enter this (or adjust arguments for 32 bit accordingly): /eval -n ${repeat:1073741824,----} It will overflow an integer calculation because int instead of size_t is used. Proper check of int limitations fixes this issue. I haven't changed this specific piece of code to size_t because it would crash in other parts of the code tree instead. For now, int is a limitating factor when it comes to strings (and should be enough for sane use cases). Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-06-15core: check that string pointer is not NULL in function "string_shared_get"Sébastien Helleu
2019-04-01tests: add test with multiple wildcards in call to function string_matchSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-03-09core: add value -1 for keep_eol in function string_strip (issue #1322)Sébastien Helleu
The value -1 means it's a standard split, but empty items are kept, and separators are not removed at beginning/end of string.
2019-02-27api: add function string_match_listSébastien Helleu
2019-01-11tests: add tests on function irc_config_check_autojoinSébastien Helleu