From urs at tin.org Sat Oct 19 15:03:46 2024 From: urs at tin.org (Urs =?UTF-8?Q?Jan=C3=9Fen?=) Date: Sat, 19 Oct 2024 15:03:46 +0200 Subject: [tin-dev] [tin 2.6.4] snapshots References: Message-ID: New snapshots available. New features: "ternary"-operator for format-strings $F, %s, %T; max screenwidth ('<') condition for format-strings. Connection type (IPv4 / IPv6) info added to connection-infp-page ('J') (this may not work with TLI, EXCELAN or DECNET - tests welcome ,-). Some code cleanup incl. small memory usage improvements by avoiding huge fixed len buffers. Changes since 2.6.3: 023) Thomas E. Dickey REM. bundled-intl stuff ADD. disallow giving both --with-socks and --with-socks5 ADD. try also libsocks5 and libsocksd if using --with-socks5 FIX. intl/*, aclocal.m4, configure[.in], autoconf.hin, nntplib.h tcurses.h, Makefile[.in], conf-tin 022) Enrik Berkhan ADD. avoid implicit conversion FIX. curses.c, misc.c, nntplib.c, rfc2047.c 021) Matt Anton ADD. updated French translation FIX. fr.po 020) Dennis Preiser ADD. ArticleInfo-page ('\'') ADD. always cast arg to is*()-functions to unsigned char ADD. avoid implicit conversion ADD. formatted output for -vZ and large article counts ADD. avoid malloc()/free() overhead in match_group_list() ADD. dont_break_words tinrc option, if set don't break long lines inside words, just on SPACE or TAB if possible. ADD. charset guessing via undeclared_cs_guess in attributes ADD. syntax check for content subtype ADD. handle multiple addresses in From, Reply-To, Approved ADD. addresses in %T are now separated by comma instead of space ADD. no longer use fixed length buffers in t_cmdlineopts ADD. limit tinrc/attributes value strings to 1022 chars (they were "randomly" cut off before around 1k) ADD. avoid fixed length buffers in t_config, t_filter_rule and t_fmt ADD. "ternary"-operator to format-strings %F, %s, %T ADD. max screenwidth ('<') condition to format-strings ADD. avoid fixed length buffer for lines on terminal when using curses REM. MAX_MSG_HEADERS limitation BUG. txt_help_config_search_opt_forwards, txt_help_config_search_opt_forwards and txt_help_attrib_search_opt_backwards, txt_help_attrib_search_opt_forwards were mixed up BUG. memleak when using bsd-sockets without getservbyname() BUG. possible memleak on quit in version.c:upgrade_prompt_quit() BUG. multiple addresses in From, Reply-To, Approved (allowed since RFC 5536) we're not handled correct. FIX. active.c, art.c, attrib.c, charset.c, config.c, cook.c, debug.c feed.c, filter.c, getline.c, group.c, header.c, help.c, inews.c init.c, keymap.c, lang.c, main.c, mail.c, makecfg.c, memory.c misc.c, nntplib.c, nntps.c, options_menu.c, page.c, pgp.c, post.c prompt.c, refs.c, regex.c, rfc2046.c, rfc2047.c, save.c, screen.c search.c, select.c, sigfile.c, signal.c, string.c, tags.c, thread.c version.c, xref.c, parsdate.y, extern.h, keymap.h, newsrc.h, proto.h rfc2046.h, tin.h, tinrc.h, tincfg.tbl 019) Urs Janssen ADD. silence some unused parameter warnings ADD. avoid sscanf(3) in check_upgrade() ADD. avoid fixed length buffer in my_mktmp() ADD. configure check for buggy snprintf(3) ADD. changed snprintf(3) fallback implementation from Patrick Powell to the one by Mark Martinec ADD. use snprintf(3) in STRCPY macro ADD. config.guess, config.sub update ADD. avoid tmpfile(3) usage ADD. configure check for blockable signal-type (POSIX, BSD, SYSV, NONE) ADD. configure check for tiuser.h (TLI; SVR3, SVR4) ADD. configure check for lrand48(3) and random(3), prefer over rand(3) ADD. configure check for tcflag_t ADD. configure check for PRIdLEAST64 and SCNdLEAST64 ADD. configure check for ucsdet_detect() from libicui18n ADD. configure check for getpeername() ADD. simplify _Noreturn check, just note the C11 standard REM. configure check for varargs.h ADD. removed fixed buffer from copy_body() ADD. SASL info to connection-info ('J') ADD. -L cmd.line switch ADD. create missing newsrc-dir ADD. -g "[ipv6::address]"[:port] also in .newsauth and newsrctable ADD. check that a recipient is present in mailgroups ADD. mention location of files being read on startup ADD. only display MOTD on startup if it did change since the last connect (use 'J' to see it anyway). ADD. cache MOTD during session ADD. REPRODUCIBLE_BUILD define to prevent recoding of __DATE__, __TIME__, $CFLAGS, $CPPFLAGS and $LDFLAGS in the binary if set ADD. disallow Distribution: all, warn about Distribution: world ADD. charset guessing via undeclared_cs_guess in attributes ADD. disallow set but empty $NAME or $REALNAME to prevent reading the users name from /etc/passwd ADD. expand tabs in multiline wait_messages ADD. calculate offset to article body for postponed articles ADD. UNICODE-1-1, SCSU, csSCSU to unsupported charsets ADD. use gmtime() and 4 digigt year for NEWGROUP on RFC 3977 servers instead of localtime and 2 digigt year REM. tmpfile.c REM. --with-sum specifying the sum of uue-file got more and more uncommon at the end of last century and uue mostly vanished laster on ... BUG. AUTHINFO SASL * didn't check possible 283 return code (as we do not support anything but SASL PLAIN yet, not an issue) BUG. -t not mentioned in -h BUG. malloc(3)- and fopen(3)-leaks on error exits BUG. didn't remove '.' from normalized charset when looking for a keymap-file BUG. socket(3)-leak on early exit due to TLS-errors BUG. possible NULL-pointer dereference in connection-info ('J') if CAPABILITIES does not return IMPLEMENTATION BUG. wrong sign for shown default kill-score value in kill-menu BUG. art_mark_xref_read() didn't allow '\t' between locations BUG. a From longer than > cCOLS wasn't properly truncated before appending organitazion in the pager BUG. may truncate format string instead of result in draw_page_header BUG. -X did not disallow EditFilter FIX. active.c, art.c, attrib.c, auth.c, config.c, cook.c, curses.c debug.c, feed.c, filter.c, getline.c, global.c, group.c, header.c help.c, inews.c, init.c, keymap.c, lang.c, lock.c, mail.c, main.c makecfg.c, memory.c, misc.c, my_tmpfile.c, newsrc.c, nntplib.c nntps.c, nrctbl.c, options_menu.c, page.c, pgp.c, post.c, prompt.c read.c, regex.c, rfc1524.c, rfc2046.c, rfc2047.c, save.c, screen.c search.c, select.c, sigfile.c, snprintf.c, string.c, tcurses.c thread.c, version.c, xface.c, xref.c, parsdate.y, debug.h, extern.h nntplib.h, proto.h, snprintf.h, tin.h, tinrc.h, tnntp.h, tincfg.tbl autoconf.h[in], configure[.in], Makefile[.in], config.guess config.sub, tin.1, tin.5 From urs at tin.org Sat Oct 19 22:54:59 2024 From: urs at tin.org (Urs =?UTF-8?Q?Jan=C3=9Fen?=) Date: Sat, 19 Oct 2024 22:54:59 +0200 Subject: [tin-dev] [tin 2.6.4] snapshots References: Message-ID: In I wrote: > New snapshots available. the following is needed to fix the build in the !USE_CURSES case. my bad. === modified file 'src/screen.c' --- old/src/screen.c 2024-10-18 20:59:22 +0000 +++ new/src/screen.c 2024-10-19 20:49:01 +0000 @@ -380,9 +380,10 @@ #endif /* MULTIBYTE_ABLE && !NO_LOCALE */ my_fputs("->", stdout); } else { - char *buffer, *s; - + char *s; #ifdef USE_CURSES + char *buffer; + # if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) buffer = my_malloc(MB_CUR_MAX * (size_t) (cCOLS + 1)); # else @@ -440,8 +441,10 @@ if (tinrc.draw_arrow) my_fputs(" ", stdout); else { + char *s; #ifdef USE_CURSES - char *buffer, *s; + char *buffer; + # if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) buffer = my_malloc(MB_CUR_MAX * (size_t) (cCOLS + 1)); # else