[Libreoffice-commits] core.git: tools/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 24 20:17:22 UTC 2020


 tools/source/misc/json_writer.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 3fb5c11ac69e6687e579d4129cb892c5ae746a5e
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Jun 24 18:24:37 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jun 24 22:16:45 2020 +0200

    fix JsonWriter::reallocBuffer
    
    was not updating mSpaceAllocated
    
    Change-Id: Ie5404e58c6520d32b72c19ddfa58b2ab2b895199
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97049
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx
index 95c8b59e5d02..be891ef18423 100644
--- a/tools/source/misc/json_writer.cxx
+++ b/tools/source/misc/json_writer.cxx
@@ -320,6 +320,7 @@ void JsonWriter::reallocBuffer(int noMoreBytesRequired)
     free(mpBuffer);
     mpBuffer = pNew;
     mPos = mpBuffer + currentUsed;
+    mSpaceAllocated = newSize;
 }
 
 /** Hands ownership of the underlying storage buffer to the caller,


More information about the Libreoffice-commits mailing list