Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package weechat for openSUSE:Factory checked in at 2025-12-02 13:20:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/weechat (Old) and /work/SRC/openSUSE:Factory/.weechat.new.14147 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "weechat" Tue Dec 2 13:20:22 2025 rev:90 rq:1320790 version:4.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/weechat/weechat.changes 2025-12-01 11:16:08.781675227 +0100 +++ /work/SRC/openSUSE:Factory/.weechat.new.14147/weechat.changes 2025-12-02 13:21:40.594681299 +0100 @@ -1,0 +2,8 @@ +Tue Dec 2 01:51:43 UTC 2025 - Hunter Wardlaw <[email protected]> + +- Update to 4.8.1: + * core: fix buffer size in function util_parse_time, causing buffer + overflow error in unit tests + * irc: fix creation of irc.msgbuffer option without a server name + +------------------------------------------------------------------- Old: ---- weechat-4.8.0.tar.xz weechat-4.8.0.tar.xz.asc New: ---- weechat-4.8.1.tar.xz weechat-4.8.1.tar.xz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ weechat.spec ++++++ --- /var/tmp/diff_new_pack.NujaIf/_old 2025-12-02 13:21:41.358713363 +0100 +++ /var/tmp/diff_new_pack.NujaIf/_new 2025-12-02 13:21:41.362713531 +0100 @@ -17,7 +17,7 @@ Name: weechat -Version: 4.8.0 +Version: 4.8.1 Release: 0 Summary: Multi-protocol extensible Chat Client License: GPL-3.0-or-later ++++++ weechat-4.8.0.tar.xz -> weechat-4.8.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weechat-4.8.0/CHANGELOG.md new/weechat-4.8.1/CHANGELOG.md --- old/weechat-4.8.0/CHANGELOG.md 2025-11-30 09:09:35.000000000 +0100 +++ new/weechat-4.8.1/CHANGELOG.md 2025-12-01 19:43:41.000000000 +0100 @@ -6,16 +6,16 @@ # WeeChat ChangeLog -## Version 4.8.0 (2025-11-30) +## Version 4.8.1 (2025-12-01) -_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ +### Fixed -### Added +- core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests +- irc: fix creation of irc.msgbuffer option without a server name -- core: add option weechat.completion.cycle -- core: add hdata for hooks -- api: add functions util_parse_int, util_parse_long and util_parse_longlong -- buflist: add variable `${index_displayed}` +## Version 4.8.0 (2025-11-30) + +_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ ### Removed @@ -39,6 +39,13 @@ - build: require Enchant v2 ([#2268](https://github.com/weechat/weechat/issues/2268)) - build: require Lua ≥ 5.3 ([#2268](https://github.com/weechat/weechat/issues/2268)) +### Added + +- core: add option weechat.completion.cycle +- core: add hdata for hooks +- api: add functions util_parse_int, util_parse_long and util_parse_longlong +- buflist: add variable `${index_displayed}` + ### Fixed - core: display an error message in case of invalid parameters in commands `/bar`, `/buffer`, `/cursor`, `/print` and `/window` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weechat-4.8.0/UPGRADING.md new/weechat-4.8.1/UPGRADING.md --- old/weechat-4.8.0/UPGRADING.md 2025-11-30 09:09:35.000000000 +0100 +++ new/weechat-4.8.1/UPGRADING.md 2025-12-01 19:43:41.000000000 +0100 @@ -24,6 +24,19 @@ Servers can easily be removed with `/server del <name>`. +### IRC SASL EXTERNAL + +When server option `sasl_mechanism` is set to `external`, WeeChat now sends the +username defined in option `sasl_username` to the IRC server +(see issue [#2270](https://github.com/weechat/weechat/issues/2270)). + +If you use the EXTERNAL mechanism and the username is set, you could either: + +- reset `sasl_username` to an empty string, if the username is **not** needed on this server: + `/reset irc.server.xxx.sasl_username` +- set `sasl_username` to your actual username, if the username **is** required on this server: + `/set irc.server.xxx.sasl_username "user"` + ### New time format in log files The time format used in log files now uses UTC and precision of microsecond diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weechat-4.8.0/src/core/core-util.c new/weechat-4.8.1/src/core/core-util.c --- old/weechat-4.8.0/src/core/core-util.c 2025-11-30 09:09:35.000000000 +0100 +++ new/weechat-4.8.1/src/core/core-util.c 2025-12-01 19:43:41.000000000 +0100 @@ -417,7 +417,7 @@ util_parse_time (const char *datetime, struct timeval *tv) { char *string, *pos, *pos2, *pos_colon, *pos_hyphen, *pos_dot; - char str_usec[16], *error, str_date[128], str_date2[256]; + char str_usec[16], *error, str_date[128]; struct tm tm_date, tm_date_gm, tm_date_local, *local_time; time_t time_now, time_gm, time_local; long long value; @@ -441,21 +441,23 @@ if (pos_colon && !pos_hyphen) { /* add current date: "19:04:55" -> "2025-08-30T19:04:55" */ - string = malloc (strlen (datetime) + 16 + 1); - if (!string) - return 0; time_now = time (NULL); local_time = localtime (&time_now); strftime (str_date, sizeof (str_date), "%Y-%m-%dT", local_time); - snprintf (string, sizeof (str_date2), "%s%s", str_date, datetime); + length = strlen (str_date) + strlen (datetime) + 1; + string = malloc (length); + if (!string) + return 0; + snprintf (string, length, "%s%s", str_date, datetime); } else if (!pos_colon && pos_hyphen && (!pos_dot || (pos_hyphen < pos_dot))) { /* add time (midnight): "2025-08-30" -> "2025-08-30T00:00:00" */ - string = malloc (strlen (datetime) + 16 + 1); + length = strlen (datetime) + 9 + 1; + string = malloc (length); if (!string) return 0; - snprintf (string, sizeof (str_date2), "%sT00:00:00", datetime); + snprintf (string, length, "%sT00:00:00", datetime); } else { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weechat-4.8.0/src/plugins/irc/irc-config.c new/weechat-4.8.1/src/plugins/irc/irc-config.c --- old/weechat-4.8.0/src/plugins/irc/irc-config.c 2025-11-30 09:09:35.000000000 +0100 +++ new/weechat-4.8.1/src/plugins/irc/irc-config.c 2025-12-01 19:43:41.000000000 +0100 @@ -1577,7 +1577,8 @@ const char *option_name, const char *value) { struct t_config_option *ptr_option; - char *pos, *name_lower; + const char *pos; + char *name_lower; int rc; /* make C compiler happy */ @@ -1605,36 +1606,33 @@ if (value) { pos = strrchr (option_name, '.'); - if (pos) + pos = (pos) ? pos + 1 : option_name; + name_lower = weechat_string_tolower (pos); + if (name_lower && (strcmp (pos, name_lower) == 0)) { - pos++; - name_lower = weechat_string_tolower (pos); - if (name_lower && (strcmp (pos, name_lower) == 0)) - { - ptr_option = weechat_config_new_option ( - config_file, section, - option_name, "enum", - _("buffer used to display message received from IRC " - "server"), - "weechat|server|current|private", 0, 0, value, value, 0, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - rc = (ptr_option) ? - WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE : - WEECHAT_CONFIG_OPTION_SET_ERROR; - } - else - { - weechat_printf ( - NULL, - _("%s%s: error: invalid option \"%s.%s\", the command " - "name or alias \"%s\" must be lower case"), - weechat_prefix ("error"), IRC_PLUGIN_NAME, - "irc.msgbuffer", option_name, pos); - free (name_lower); - return rc; - } + ptr_option = weechat_config_new_option ( + config_file, section, + option_name, "enum", + _("buffer used to display message received from IRC " + "server"), + "weechat|server|current|private", 0, 0, value, value, 0, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + rc = (ptr_option) ? + WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE : + WEECHAT_CONFIG_OPTION_SET_ERROR; + } + else + { + weechat_printf ( + NULL, + _("%s%s: error: invalid option \"%s.%s\", the command " + "name or alias \"%s\" must be lower case"), + weechat_prefix ("error"), IRC_PLUGIN_NAME, + "irc.msgbuffer", option_name, pos); free (name_lower); + return rc; } + free (name_lower); } else rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weechat-4.8.0/version.sh new/weechat-4.8.1/version.sh --- old/weechat-4.8.0/version.sh 2025-11-30 09:09:35.000000000 +0100 +++ new/weechat-4.8.1/version.sh 2025-12-01 19:43:41.000000000 +0100 @@ -41,8 +41,8 @@ # devel-number the devel version as hex number ("0x04010000" for "4.1.0-dev") # -weechat_stable="4.8.0" -weechat_devel="4.8.0" +weechat_stable="4.8.1" +weechat_devel="4.8.1" stable_major=$(echo "${weechat_stable}" | cut -d"." -f1) stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
