LyX 2.3.4 is Released

Enrico Forestieri forenr at
Thu Feb 6 15:02:34 UTC 2020

On Thu, Feb 06, 2020 at 12:59:53PM +0100, Pavel Sanda wrote:
> I looked at the code and the buffer length seems properly handled in the reported
> line (247) by the previous if clause.
> What is not clear to me are two following lines, which add m+1 chars while the
> check seem to properly handle only m chars and leaving no place for the final' \0'.
> Anyone else can confirm?

I think the code is correct. It copies m+1 chars in order to be sure that
the final '\0' is also copied. The fact that there is space for it is
assured by the initial check that k+m+1 < MAX_WD_LEN.


More information about the lyx-devel mailing list