> > > * Actual Result:
> > > lynx https://lists.nongnu.org/archive/html/lynx-dev/2021-10/threads.html

> oh.  I see.  But I don't see this result here (perhaps locale-dependent).

I used this configuration on Debian 9:
./configure --libdir=/usr/local/lib/lynx --enable-nls \
--enable-included-msgs --with-ssl --enable-addrlist-page \
--enable-charset-choice --enable-cjk --enable-default-colors \
--enable-file-upload --enable-justify-elts --enable-nested-tables \
--enable-read-eta --enable-source-cache --enable-gzip-help --with-zlib \
--enable-externs --enable-internal-links --enable-japanese-utf8 \
--with-screen=ncursesw --enable-wcwidth-support --disable-color-style

or this configuration:
./configure --with-ssl --with-screen=ncursesw --disable-color-style


> AND seeing how to avoid the case where p/linedata overlap might be
> better.

I changed to use memmove() and got expected result.
(no asan2 check yet)

-           strcat(linedata, p);
+           memmove(linedata + line->size, p, plen + 1);


Reply via email to