| b0062a7f | 08-Jun-2025 |
Tijl Coosemans <tijl@FreeBSD.org> |
Make robust against __cxa_exception ABI changes
Patch OpenOffice to replace __cxa_get_globals()->caughtExceptions, which is a pointer to the start of a struct __cxa_exception, with __cxa_current_pri
Make robust against __cxa_exception ABI changes
Patch OpenOffice to replace __cxa_get_globals()->caughtExceptions, which is a pointer to the start of a struct __cxa_exception, with __cxa_current_primary_exception(), which is a pointer to the end. This allows struct __cxa_exception to be extended at the start as was recently done in FreeBSD main and stable/13 on 64-bit architectures.
Recently on FreeBSD main and stable/13 __attribute__((__aligned__)) was added to struct _Unwind_Exception which changes its size on 32-bit architectures, and that of __cxa_exception as well. Patch openoffice to detect this so packages built on 13.0 still work on 13.1.
(cherry picked from commit d10e4cc263102d760b56217974702c98f89327b0) (cherry picked from commit 3bfdfb5f4474009ab79d4e0a47aa68a4a684cbd6)
show more ...
|
| ccdf8a55 | 08-Jun-2026 |
Jim Jagielski <jimjag@gmail.com> |
Fix crash, uninitialized-return, and buffer bugs in update check and macOS x86 bridge
updateprotocol.cxx: guard XNodeList dereferences so a swallowed XPathException no longer leaves a null reference
Fix crash, uninitialized-return, and buffer bugs in update check and macOS x86 bridge
updateprotocol.cxx: guard XNodeList dereferences so a swallowed XPathException no longer leaves a null reference to be dereferenced (crash on malformed/hostile update descriptors); clear the list before the relnote query so a thrown exception can't leave us iterating the previous (sources) node list.
cpp2uno.cxx: the queryInterface fast-path guard used 'break', which exited the switch and skipped the default case, returning an uninitialized typelib_TypeClass. Guard the block with 'if (bHasHiddenReturn)' instead so control falls through to default and eRet is always assigned.
updatecheck.cxx (getImageFromFileName): use bitwise '|' instead of logical '||' when combining osl_Process flags; rewrite the trailing CR/LF trim so it never reads/writes before the start of the buffer (e.g. when osl_readFile returns 0 bytes).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
show more ...
|
| 51a1e52e | 10-Dec-2013 |
Herbert Dürr <hdu@apache.org> |
#i122195# provide proper type_info for UNO exceptions on OSX 64bit
on OSX 64bit the class_type_info classes are specified in http://refspecs.linuxbase.org/cxxabi-1.86.html#rtti but these details are
#i122195# provide proper type_info for UNO exceptions on OSX 64bit
on OSX 64bit the class_type_info classes are specified in http://refspecs.linuxbase.org/cxxabi-1.86.html#rtti but these details are not generally available in a public header of most development environments. So we define them locally.
git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1549940 13f79535-47bb-0310-9956-ffa450edef68
show more ...
|