Re: Display of some multi-line links is cut off in the middle

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Fri, Dec 31, 2021 at 08:02:00PM -0500, Thomas Dickey wrote:
> On Fri, Dec 31, 2021 at 12:23:43PM +0900, KIHARA Hideto wrote:
> > * Problem:
> > In lynx2.9.0dev.10, display of some multi-line links is cut off in the middle.
> > lynx2.9.0dev.9 does not have the problem.
> > 
> > * 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).
What I see is (for links-are-numbered):

     * [9][Lynx-dev] "<base href=" bug?, Gisle Vanem, 2021/10/30               ▒
          + [10]Re:  [Lynx-dev]  "<base  href="  bug?,  Thomas Dickey,         ▒
            2021/10/30                                                         ▒
     * [11][Lynx-dev] Build failures on hppa architectures after update        ▒
       from 2.9.0dev.9 to 2.9.0dev.10, Axel Beckert, 2021/10/30                ▒
          + [12]Re: [Lynx-dev] Build failures on hppa architectures after      ▒
            update   from   2.9.0dev.9  to  2.9.0dev.10,  Thomas  Dickey,      ▒
            2021/10/30                                                         ▒
          + [13]Re: [Lynx-dev] Build failures on hppa architectures after      ▒
            update from 2.9.0dev.9 to 2.9.0dev.10, Mouse, 2021/10/30           ▒
               o [14]Re: [Lynx-dev] Build failures on hppa architectures       ▒
                 after  update  from  2.9.0dev.9  to  2.9.0dev.10, Thomas      ▒
                 Dickey, 2021/10/30                        

> > 
> > >     * [13][Lynx-dev] Build failures on hppa architectures after update
> > >       fr
> > 
> > * Expected Result:
> > >     * [13][Lynx-dev] Build failures on hppa architectures after update
> > >       from 2.9.0dev.9 to 2.9.0dev.10, Axel Beckert, 2021/10/30
> > 
> > * Fix:
> > Reverting following change solves the problem.
> > --- lynx2.9.0dev.9/src/GridText.c	2021-06-30 07:01:12.000000000 +0900
> > +++ lynx2.9.0dev.10/src/GridText.c	2021-10-25 01:13:59.000000000 +0900
> > @@ -3006,7 +3005,7 @@
> >  	    ctrl_chars_on_this_line += utfxtra_on_this_line;
> >  
> >  	    /* Add the data to the new line. -FM */
> > -	    strcat(linedata, p);
> > +	    for (i = 0; (linedata[i] = p[i]) != '\0'; ++i) ;
> >  	    line->size = (unsigned short) (line->size + plen);
> >  	}
> >      }
> 
> asan2 reported that this line had a strcpy whose source/destination overlapped.
> 
> If you have a test-file which shows the difference, I can probably make
> a better fix.
> 
> -- 
> Thomas E. Dickey <[email protected]>
> https://invisible-island.net
> ftp://ftp.invisible-island.net



-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmHPq5QACgkQzCr0RyFn
vgPnHgwAhPGLLFKPr7zs0BieuFNo2yiBHB3ytQ1uBPojzHMjNTma7yREbD2K6pLI
9z2iw4Ls4QWM0c4ANwmWSy3m/Ii67QRJb8IgjO6vS4dwhYMWh+TvQADN4/XmK3YF
nkec70uQXyKSUlgjFhi851MKzcb0rHfIjTxm+bp37freB+Dk+vFq9Zo2BBZoKEZj
lWy1z+FxVLaEk9lH02lPHwpdz5LGqkqeaW5SV9NJyzLIf3mFBvNWQamMtfXfqHZd
BuM57tFBG2v/VzwLgDED4aW0Ag0oe9jkZk+YQFuugYoMtawFfUOEvhKG6U25lg5l
tzsGZoSKJ1f8VptMEKNncSwC3bD7YImmyUgwNSVVElZj1QQQS5ZYRsfDMq4kByyz
J/iHzUh9y4/dyso7/KDeoSIkchay90lCM2poIsj72WxDjaMgf0B3XfkDj88cq8PA
uXv5afMBEZrmg9Qh4g7snG8WAe2HpWfXKq5gdjLVvivqciA6sjlIcTBcWX39FXU6
v7V7RaS+
=cvN9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.