cid#1607798 Overflowed integer argument

Change-Id: I561e86e07a61114523cad545646edf24cf50a260
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174707
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-10-08 19:21:39 +02:00 committed by Noel Grandin
parent a28f9a8cc2
commit ac4ea1ad3a

View file

@ -578,7 +578,7 @@ oslFileError FileHandle_Impl::readLineAt(
if (curpos >= m_buflen)
{
/* buffer examined */
if ((curpos - bufpos) > 0)
if (curpos > bufpos)
{
/* flush buffer to sequence */
result = writeSequence_Impl(