sw/source/core/access/accpara.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c349892967ca97748fcd065918ada191c234b7c4
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Oct 16 20:43:42 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Oct 17 13:27:19 2024 +0200

    cid#1555042 Data race condition
    
    Change-Id: Ifc3e2134520a6947ab66014c40b962b1de8a22be
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175066
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/core/access/accpara.cxx 
b/sw/source/core/access/accpara.cxx
index 8befa7e9ea34..4b5aeae0450d 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -3466,7 +3466,8 @@ bool SwAccessibleParagraph::GetSelectionAtIndex(
 
 sal_Int16 SAL_CALL SwAccessibleParagraph::getAccessibleRole()
 {
-    SolarMutexGuard g;
+    std::scoped_lock aGuard( m_Mutex );
+
     //Get the real heading level, Heading1 ~ Heading10
     if (m_nHeadingLevel > 0)
         return AccessibleRole::HEADING;

Reply via email to