summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2020-04-08tests: add tests on calc functionsSébastien Helleu
Functions tested: - calc_operator_precedence - calc_pop_value - calc_list_free_cb - calc_operation - calc_operation_stacks
2020-04-07core: fix memory leak in calculation of expression on FreeBSD (closes #1469)Sébastien Helleu
The memory leak was caused by a bug in function setlocale on FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243195 The fix is the following: * Remove the calls to setlocale when formatting the result. * The function snprintf is still called, and then is now locale dependent, for example in French the decimal separator is a comma instead of a dot. * A new function calc_sanitize_decimal_number is introduced to "sanitize" a decimal number: keep only the decimal separator (replace it by a dot) and remove any other separator found. Unit tests are added on these functions: * calc_sanitize_decimal_number * calc_format_result
2020-03-23core: fix compiler warnings on CygwinSébastien Helleu
2020-03-20api: add info "auto_connect" (closes #1453)Sébastien Helleu
2020-03-02core: add minimum libgcypt version 1.7.0 for SHA3 algorithms in comment of ↵Sébastien Helleu
function weecrypto_hash
2020-03-02core: fix copyright date in wee-crypto sourcesSébastien Helleu
2020-03-02core: require libgcrypt >= 1.7.0 for SHA3 algorithmsSébastien Helleu
2020-03-01api: add function crypto_hash_pbkdf2Sébastien Helleu
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-03-01core: add function secure_hash_pbkdf2Sébastien Helleu
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-02-29core: call function secure_hash_binary in secure_derive_key to compute ↵Sébastien Helleu
SHA512 hash
2020-02-29core: return 0 in case of invalid parameters received in function ↵Sébastien Helleu
secure_derive_key
2020-02-29core: add functions to compute binary/hex hash of dataSébastien Helleu
2020-02-02core: rename function util_get_uptime to util_get_time_diffSébastien Helleu
The two times must be sent as parameters, which makes the function not specific to uptime. It is now easier to test the function in unit tests.
2020-01-20core: flush stdout/stderr before forking in hook_process function (closes #1441)Sébastien Helleu
2020-01-12core: add variable "old_full_name" in buffer, set before the buffer is ↵Sébastien Helleu
renamed (issue #1428)
2020-01-04core: update copyright datesSébastien Helleu
2019-12-18core: fix evaluation of condition with nested "if" (closes #1434)Sébastien Helleu
2019-12-18core: add debug option "-d" in command /eval (issue #1434)Sébastien Helleu
2019-12-18core: add missing variable "proxy" in function hook_connect_print_logSébastien Helleu
2019-11-25core: add more info in /help weechat.look.nick_color_hash_salt (issue #635)Sébastien Helleu
2019-11-25core: add option weechat.look.nick_color_hash_salt to allow for reshuffling ↵Simmo Saan
of colors (issue #635)
2019-10-23core: optimize search of options in configuration sectionsSébastien Helleu
Since options are sorted in sections, it is faster to search from the last option to the first one. For configuration files with many options in a single section (like plugins.conf), the load of configuration file is about 2 to 3x faster.
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-10-06core: ensure completion_item is not NULL before using itSébastien Helleu
2019-10-06core: fix crash in completion of filenamesSébastien Helleu
2019-10-06core: add optional default path (evaluated) in completion "filename" (issue #60)Sébastien Helleu
2019-10-06core: add support of modifiers in evaluation of expressions with ↵Sébastien Helleu
"modifier:name,data,string" (issue #60)
2019-09-24core: add power operator "**" in calc expressions (issue #997)Sébastien Helleu
2019-09-24core: fix wrong results with the unary minus in calc expressionsSébastien Helleu
2019-09-21core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}Sébastien Helleu
2019-09-21core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressionsSébastien Helleu
2019-09-20core: add calculation of expression in evaluation of expressions with ↵Sébastien Helleu
"calc:..." (issue #997)
2019-09-19core: remove extra spaces in arguments of /help uptime and /help versionSébastien Helleu
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-09-16core: mention possible background color in /help weechat.look.nick_color_forceSébastien Helleu
2019-08-31core: fix compilation with autotools on FreeBSD 12.0Sébastien Helleu
2019-08-20core: add values djb2_32 and sum_32 for option weechat.look.nick_color_hash ↵Sébastien Helleu
(issue #1394)
2019-08-19core: use fixed-width integer for computing hashtable DJB2 key hash (closes ↵Sébastien Helleu
#1394)
2019-08-10core: create or update option weechat.notify.xxx when function buffer_set is ↵Sébastien Helleu
called with "notify" property (closes #1390)
2019-08-10api: add function list_user_data (issue #666)Andrew Potter
2019-08-04core: return NULL immediately if string is NULL in function hook_modifier_execSébastien Helleu
2019-07-29core: add some missing default keys in /help cursorSébastien Helleu
2019-06-24core: auto disable upgrade process (command line option "--upgrade") if the ↵Sébastien Helleu
file weechat.upgrade is not found
2019-06-17core: add option "close" in command /window (closes #853)Sébastien Helleu
2019-06-16core: add Curl options for versions 7.53.0 to 7.63.0Sébastien Helleu
2019-06-16core: replace newlines by spaces in argument "completion" of function ↵Sébastien Helleu
hook_command (closes #538)