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 394d8ce1ef111daae4496e16681cbbdce7ac59a2
Author: Pedro Giffuni <[email protected]>
AuthorDate: Sat Oct 24 01:47:02 2026 -0500

    Fix GCC 15 compatibility issues
    
    1. Fix buffer overflow in SvMemoryStream::PutData: add bounds check
       before memcpy to prevent overflow when buffer reallocation fails.
    
    2. Change RTLD_NOW to RTLD_LAZY in checkdll: GCC 15 with
       _FORTIFY_SOURCE=2 detects issues with eager symbol resolution
       in shared libraries with many undefined symbols.
    
    Source-only fixes; no Makefile changes.
---
 main/tools/source/stream/stream.cxx | 2 --
 1 file changed, 2 deletions(-)

diff --git a/main/tools/source/stream/stream.cxx 
b/main/tools/source/stream/stream.cxx
index 7481a912d7..3a44cab97d 100644
--- a/main/tools/source/stream/stream.cxx
+++ b/main/tools/source/stream/stream.cxx
@@ -2791,8 +2791,6 @@ 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