Sébastien Helleu
d67520a212
core: add option weechat.completion.partial_completion_auto_expand ( closes #2253 )
2025-06-30 09:35:53 +02:00
Sébastien Helleu
b467f85f30
core: always enable partial completion for templates in option weechat.completion.partial_completion_templates (issue #2253 )
...
Previous behavior was to reverse the partial completion, which was confusing
when option like weechat.completion.partial_completion_command_arg was enabled
as well.
2025-06-29 14:24:58 +02:00
Sébastien Helleu
6d45a69f39
core: set max version for Curl symbol CURLOPT_SSL_FALSESTART
2025-06-21 20:30:05 +02:00
Sébastien Helleu
34f2e6cdd0
core: add script name in output of /debug hooks <plugin>
2025-06-08 16:36:46 +02:00
Sébastien Helleu
a6e859b7ff
tests: add test with a float number using a lot of decimals in calculation of expression
...
This test validates the fix made in commit
5b4820ab06 and will prevent regression with such
numbers.
2025-06-07 09:45:15 +02:00
Sébastien Helleu
103bddcc50
core: add issue number in ChangeLog
2025-05-25 09:59:17 +02:00
Sébastien Helleu
76a64e1280
core: update ChangeLog (issue #2251 )
2025-05-25 09:55:01 +02:00
Sébastien Helleu
75c01e8c8d
core: fix build on FreeBSD (issue #2251 )
...
Check if the resolv library is found before checking if it has res_init.
2025-05-25 09:44:06 +02:00
Albert Lee
e8ce75f20c
core: avoid dynamic format strings for Clang -Werror=format-security
2025-05-25 09:26:10 +02:00
Albert Lee
47f7518c1f
gui: use NCURSES_CFLAGS if available
2025-05-25 09:26:08 +02:00
Albert Lee
9a9a262ea1
python: use built-in CMake FindPython module from CMake 3.12 or higher
2025-05-25 09:19:05 +02:00
Albert Lee
7fb3ca6686
core: always define _XPG4_2 and __EXTENSIONS__ on Solaris/illumos
2025-05-25 09:06:51 +02:00
Albert Lee
e98a32373e
core: check if res_init requires linking with libresolv
2025-05-25 09:05:42 +02:00
Albert Lee
69d3787b5e
core: improve support for non-macro htonll and htobe64
2025-05-25 09:03:48 +02:00
Sébastien Helleu
aa6cbf911e
tests/fuzz: add link option -fsanitize=fuzzer-no-link when fuzzer sanitizer is used
2025-05-24 08:27:05 +02:00
Albert Lee
cf1c4a689d
core: use same msgfmt invocation to perform checks and create weechat.mo
...
On Illumos, msgfmt aborts when `--output-file=/dev/null` is used.
2025-05-22 21:03:03 +02:00
Albert Lee
48568edfe0
lua: use LUA_CFLAGS from pkg-config
2025-05-22 21:02:58 +02:00
Albert Lee
d7b26e88b8
core: include pthread.h for pthread types
2025-05-22 21:02:53 +02:00
Sébastien Helleu
0407a08888
doc/api: fix invalid cross references
2025-05-20 20:56:02 +02:00
Sébastien Helleu
ff3fd38086
doc/user: fix invalid cross references
2025-05-20 20:53:56 +02:00
Sébastien Helleu
847208f196
core: add verbose flag in asciidoctor
...
This allows asciidoctor to display important messages, for example invalid
references like this one:
asciidoctor: INFO: possible invalid reference: compile_with_cmake
2025-05-20 20:51:26 +02:00
Sébastien Helleu
f6ef908740
core: add contributor (issue #2252 )
2025-05-20 10:16:26 +02:00
Caleb Josue Ruiz Torres
f2bd5d773b
core: update Spanish translations
2025-05-20 10:12:34 +02:00
Sébastien Helleu
6cbb35c644
core: fix typo in ChangeLog
2025-05-18 22:32:40 +02:00
Sébastien Helleu
372e7306bc
core: update ChangeLog
2025-05-18 22:28:02 +02:00
Sébastien Helleu
927a50e366
core, plugins: replace "%p" by "%lx" in calls to sscanf
2025-05-18 22:17:29 +02:00
Sébastien Helleu
d0c00f7db2
Revert "core, plugins: replace "%lx" by "%p" in calls to sscanf"
...
This reverts commit e64ab3c675 .
This was causing incorrect conversion of strings "0x..." to pointers on systems
like Solaris/illumos.
And as a side effect, buffers were sometimes empty in weechat relay clients
like glowing-bear.
2025-05-18 22:17:16 +02:00
Sébastien Helleu
9783256649
relay/api: use specifier %@ for times formatted by util_strftimeval
2025-05-18 22:15:39 +02:00
Sébastien Helleu
8106db400d
core: add support of specifier %@ for UTC time in function util_strftimeval
2025-05-18 22:15:06 +02:00
Sébastien Helleu
4d617d0e01
tests/fuzz: ignore huge data in fuzz testing of calculation functions
2025-05-18 17:22:10 +02:00
Sébastien Helleu
acbf1ddfcf
tests/fuzz: ignore empty or huge data in fuzz testing of secured data functions
2025-05-18 17:20:49 +02:00
Sébastien Helleu
999262cbf2
core: add version 4.6.3
2025-05-11 11:47:01 +02:00
Sébastien Helleu
7b674c2618
core: add extra checks in function eval_string_range_chars
...
This is done in addition to changes made in commit
d475c16671 to fix the buffer overflow, caused by
the call to function utf8_next_char.
2025-05-11 10:26:17 +02:00
Sébastien Helleu
1efa9d6b08
core: reactivate CMake tests in root build directory (issue #1462 )
...
This fixes the command `ctest` executed in the root build directory.
It was removed by accident in commit 68d87f2b80 .
2025-05-11 10:15:08 +02:00
Sébastien Helleu
1fe23d9233
core: add API functions utf8_next_char, utf8_char_size and util_version_number in upgrade guidelines
2025-05-11 07:54:55 +02:00
Sébastien Helleu
5cfee46b59
tests/fuzz: add fuzz testing on evaluation functions (issue #1462 )
2025-05-10 21:21:35 +02:00
Sébastien Helleu
75195d32da
tests/fuzz: fix fuzz testing on function secure_derive_key (issue #1462 )
2025-05-10 21:21:33 +02:00
Sébastien Helleu
d475c16671
core: fix buffer overflow in function utf8_next_char and return NULL for empty string
...
Now the function utf8_next_char with an empty string returns NULL instead of
the next char, which is most of the time after an allocated buffer.
And the function utf8_char_size with an empty string now returns 0 instead of
1.
This indirectly fixes a buffer overflow in function eval_string_range_chars
when the input string is empty (for example when doing `/eval -n ${chars:}`).
2025-05-10 20:53:04 +02:00
Sébastien Helleu
6ecd9e66bf
core: fix buffer overflow in function eval_string_base_encode
2025-05-10 15:28:41 +02:00
Sébastien Helleu
9d37159a6b
core: use dynamic string in function string_replace_with_callback
2025-05-10 15:26:12 +02:00
Sébastien Helleu
aa54d3653c
core: fix buffer overflow in function eval_syntax_highlight_colorize
2025-05-10 15:26:09 +02:00
Sébastien Helleu
b32f8662bc
doc/dev: split components for tests: tests/fuzz and tests/unit
2025-05-09 08:15:28 +02:00
Sébastien Helleu
f9520b971e
tests/fuzz: add fuzz testing on secured data functions (issue #1462 )
2025-05-09 08:15:28 +02:00
Sébastien Helleu
776b908431
tests/fuzz: remove unnecessary malloc
2025-05-08 20:54:38 +02:00
Sébastien Helleu
58a4dc757d
doc/dev: add missing test files
2025-05-08 20:49:04 +02:00
Sébastien Helleu
229259b8c2
tests: add fuzz testing on some core util functions (issue #1462 )
2025-05-08 20:43:24 +02:00
Sébastien Helleu
1d808a1f1c
core: fix buffer overflow in function util_parse_time
2025-05-08 19:09:18 +02:00
Sébastien Helleu
2bc290b6ed
core: fix integer overflow and return "unsigned long" in function util_version_number
2025-05-08 18:45:39 +02:00
Sébastien Helleu
f6cace609c
core: fix memory leak in function util_parse_delay
2025-05-08 18:12:11 +02:00
Sébastien Helleu
1da89711a7
tests/fuzz: increase code covered by string tests
2025-05-08 17:04:23 +02:00