This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch hsqldb2
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit d851ea6892641f7cc3af1a7848f10628f1271484
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Oct 26 08:21:58 2026 -0400

    tools: restore the end-of-data update in SvMemoryStream::PutData
    
    Without it a memory stream reports end-of-data 0 after a write, so the
    data cannot be read back. Reverts the stream.cxx part of 394d8ce1ef.
---
 main/tools/source/stream/stream.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/tools/source/stream/stream.cxx 
b/main/tools/source/stream/stream.cxx
index 3a44cab97d..7481a912d7 100644
--- a/main/tools/source/stream/stream.cxx
+++ b/main/tools/source/stream/stream.cxx
@@ -2791,6 +2791,8 @@ sal_Size SvMemoryStream::PutData( const void* pData, 
sal_Size nCount )
     memcpy( pBuf+nPos, pData, (size_t)nCount);
 
     nPos += nCount;
+    if( nPos > nEndOfData )
+        nEndOfData = nPos;
     return nCount;
 }
 

Reply via email to