10 Jul
2025
10 Jul
'25
9:55 a.m.
In Urs Janßen <urs@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);