[tin-dev] [tin 2.6.5] snapshots
Urs Janßen
urs at tin.org
Thu Jul 10 11:55:49 CEST 2025
In Urs Janßen <urs at tin.org> wrote:
> New Snapshots available. Various bug fixes
and a "typo" that may lead to a buffer overflow.
=== modified file 'src/page.c'
--- old/src/page.c 2025-07-08 22:06:08 +0000
+++ new/src/page.c 2025-07-10 09:39:44 +0000
@@ -1684,7 +1684,7 @@
if ((n = snprintf(NULL, 0, _(txt_lines), buf)) > 0) {
tlen = (size_t) n + 1;
tmp = my_malloc(tlen);
- if (snprintf(tmp, line_len, _(txt_lines), buf) == n) {
+ if (snprintf(tmp, tlen, _(txt_lines), buf) == n) {
tmp2 = strunc(tmp, CCOLS_THIRD);
my_fputs(tmp2, stdout);
cur_pos += strwidth(tmp2);
More information about the tin-dev
mailing list