<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> LibreOffice <libreoffice-bounces@lists.freedesktop.org> on behalf of libreoffice-request@lists.freedesktop.org <libreoffice-request@lists.freedesktop.org><br>
<b>Sent:</b> July 13, 2025 7:00 AM<br>
<b>To:</b> libreoffice@lists.freedesktop.org <libreoffice@lists.freedesktop.org><br>
<b>Subject:</b> LibreOffice Digest, Vol 179, Issue 14</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send LibreOffice mailing list submissions to<br>
        libreoffice@lists.freedesktop.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
or, via email, send a message with subject or body 'help' to<br>
        libreoffice-request@lists.freedesktop.org<br>
<br>
You can reach the person managing the list at<br>
        libreoffice-owner@lists.freedesktop.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of LibreOffice digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. GSoC Weekly Report - Python Code Auto-completion - Week [8]<br>
      ([06/07/2025] - [12/07/2025]) (Manish Bera)<br>
   2. New Defects reported by Coverity Scan for LibreOffice<br>
      (scan-admin@coverity.com)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 12 Jul 2025 22:45:49 +0530<br>
From: Manish Bera <mbera.dev05@gmail.com><br>
To: libreoffice@lists.freedesktop.org<br>
Subject: GSoC Weekly Report - Python Code Auto-completion - Week [8]<br>
        ([06/07/2025] - [12/07/2025])<br>
Message-ID:<br>
        <CAFmnOHaE_x23uMLA+hmP9NZTDvrQx-iJZqkJPOGbV4SBzLVsbw@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Libreoffice community,<br>
<br>
Here's a brief summary of my progress for week 8,<br>
<br>
*This Week?s Work:*<br>
<br>
   -<br>
<br>
   Added support for generating Python stubs for singletons types.<br>
   -<br>
<br>
   *Completed *the entire pythonmaker tool.<br>
   -<br>
<br>
   Expanded the unit tests to exceptions type.<br>
<br>
 *Next Steps:*<br>
<br>
   -<br>
<br>
   Continue expanding unit tests.<br>
   -<br>
<br>
   Create documentations for pythonmaker tools.<br>
<br>
Best regards,<br>
*Manish Bera*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/libreoffice/attachments/20250712/4f1ca06d/attachment-0001.htm">https://lists.freedesktop.org/archives/libreoffice/attachments/20250712/4f1ca06d/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 13 Jul 2025 06:41:54 +0000 (UTC)<br>
From: scan-admin@coverity.com<br>
To: libreoffice@lists.freedesktop.org<br>
Subject: New Defects reported by Coverity Scan for LibreOffice<br>
Message-ID:<br>
        <6873553224ab7_1fe8f82cc52061d9947360@prd-scan-dashboard-0.mail><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi,<br>
<br>
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.<br>
<br>
10 new defect(s) introduced to LibreOffice found with Coverity Scan.<br>
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.<br>
<br>
New defect(s) Reported-by: Coverity Scan<br>
Showing 10 of 10 defect(s)<br>
<br>
<br>
** CID 1659053:       Null pointer dereferences  (FORWARD_NULL)<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659053:         Null pointer dereferences  (FORWARD_NULL)<br>
/sw/source/ui/fldui/fldref.cxx: 332             in SwFieldRefPage::TypeHdl(weld::TreeView &)()<br>
326             {<br>
327                 // select positions<br>
328                 OUString sName;<br>
329                 sal_uInt16 nFlag = 0;<br>
330     <br>
331                 SwGetRefField* pRefField = dynamic_cast<SwGetRefField*>(GetCurField());<br>
>>>     CID 1659053:         Null pointer dereferences  (FORWARD_NULL)<br>
>>>     Passing null pointer "pRefField" to "GetSubType", which dereferences it.<br>
332                 switch( pRefField->GetSubType() )<br>
333                 {<br>
334                     case ReferencesSubtype::Bookmark:<br>
335                     {<br>
336                         // #i83479#<br>
337                         if ( pRefField->IsRefToHeadingCrossRefBookmark() )<br>
<br>
** CID 1659052:       Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
/sw/source/filter/md/wrtmd.cxx: 180           in <unnamed>::OutFormattingChange(SwMDWriter &, <unnamed>::HintsAtPos &, <unnamed>::HintsAtPos &, int, <unnamed>::FormattingStatus &)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659052:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
/sw/source/filter/md/wrtmd.cxx: 180             in <unnamed>::OutFormattingChange(SwMDWriter &, <unnamed>::HintsAtPos &, <unnamed>::HintsAtPos &, int, <unnamed>::FormattingStatus &)()<br>
174                 rWrt.Strm().WriteUnicodeOrByteText(u"](");<br>
175                 rWrt.Strm().WriteUnicodeOrByteText(url);<br>
176                 rWrt.Strm().WriteUnicodeOrByteText(u")");<br>
177             }<br>
178         }<br>
179     <br>
>>>     CID 1659052:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
>>>     "result" is copied in a call to copy assignment "operator =", when it could be moved instead.<br>
180         current = result;<br>
181     }<br>
182     <br>
183     void OutEscapedChars(SwMDWriter& rWrt, std::u16string_view chars)<br>
184     {<br>
185         for (size_t pos = 0; pos < chars.size();)<br>
<br>
** CID 1659051:       Uninitialized members  (UNINIT_CTOR)<br>
/sw/source/filter/md/mdtab.cxx: 42           in MDTable::MDTable(SwMarkdownParser *)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659051:         Uninitialized members  (UNINIT_CTOR)<br>
/sw/source/filter/md/mdtab.cxx: 42             in MDTable::MDTable(SwMarkdownParser *)()<br>
36         MDTable(SwMarkdownParser* pParser)<br>
37             : m_pParser(pParser)<br>
38             , m_nCurRow(-1)<br>
39             , m_nCurCol(-1)<br>
40         {<br>
41             m_pParser->RegisterTable(this);<br>
>>>     CID 1659051:         Uninitialized members  (UNINIT_CTOR)<br>
>>>     Non-static class member "m_nCol" is not initialized in this constructor nor in any functions that it calls.<br>
42         }<br>
43     <br>
44         ~MDTable() { m_pParser->DeRegisterTable(this); }<br>
45     <br>
46         const SwTable* GetTable() { return m_pTable; }<br>
47         sal_Int32 GetCurRow() { return m_nCurRow; }<br>
<br>
** CID 1659050:       Uninitialized members  (UNINIT_CTOR)<br>
/sw/source/core/fields/fldbas.cxx: 861           in SwValueField::SwValueField(const SwValueField&)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659050:         Uninitialized members  (UNINIT_CTOR)<br>
/sw/source/core/fields/fldbas.cxx: 861             in SwValueField::SwValueField(const SwValueField&)()<br>
855     }<br>
856     <br>
857     SwValueField::SwValueField( const SwValueField& rField )<br>
858         : SwField(rField)<br>
859         , m_fValue(rField.GetValue())<br>
860     {<br>
>>>     CID 1659050:         Uninitialized members  (UNINIT_CTOR)<br>
>>>     Non-static class member "m_nFormat" is not initialized in this constructor nor in any functions that it calls.<br>
861     }<br>
862     <br>
863     SwValueField::~SwValueField()<br>
864     {<br>
865     }<br>
866     <br>
<br>
** CID 1659049:       Resource leaks  (RESOURCE_LEAK)<br>
/sal/osl/unx/profile.cxx: 942           in openFileImpl(const char *, unsigned int)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659049:         Resource leaks  (RESOURCE_LEAK)<br>
/sal/osl/unx/profile.cxx: 942             in openFileImpl(const char *, unsigned int)()<br>
936     {<br>
937         int        Flags;<br>
938         osl_TFile* pFile = static_cast<osl_TFile*>(calloc(1, sizeof(osl_TFile)));<br>
939         bool       bWriteable = false;<br>
940     <br>
941         if ( isForbidden( pszFilename, osl_File_OpenFlag_Write ) )<br>
>>>     CID 1659049:         Resource leaks  (RESOURCE_LEAK)<br>
>>>     Variable "pFile" going out of scope leaks the storage it points to.<br>
942             return nullptr;<br>
943     <br>
944         if ( ProfileFlags & ( osl_Profile_WRITELOCK | osl_Profile_FLUSHWRITE ) )<br>
945         {<br>
946             bWriteable = true;<br>
947         }<br>
<br>
** CID 1659048:       Control flow issues  (DEADCODE)<br>
/sw/source/ui/fldui/flddok.cxx: 496           in SwFieldDokPage::FillFormatLB(SwFieldTypesEnum)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659048:         Control flow issues  (DEADCODE)<br>
/sw/source/ui/fldui/flddok.cxx: 496             in SwFieldDokPage::FillFormatLB(SwFieldTypesEnum)()<br>
490         }<br>
491     <br>
492         if (IsFieldEdit())<br>
493         {<br>
494             if (nTypeId == SwFieldTypesEnum::Author)<br>
495             {<br>
>>>     CID 1659048:         Control flow issues  (DEADCODE)<br>
>>>     Execution cannot reach this statement: "nFormat = o3tl::is_typed_fl...".<br>
496                 SwAuthorFormat nFormat = static_cast<const SwAuthorField*>(GetCurField())->GetFormat() & ~SwAuthorFormat::Fixed;<br>
497                 m_xFormatLB->select_id(OUString::number(static_cast<sal_uInt32>(nFormat)));<br>
498             }<br>
499             else if (nTypeId == SwFieldTypesEnum::ExtendedUser)<br>
500             {<br>
501                 SwAuthorFormat nFormat = static_cast<const SwExtUserField*>(GetCurField())->GetFormat() & ~SwAuthorFormat::Fixed;<br>
<br>
** CID 1659047:       Security best practices violations  (STRING_OVERFLOW)<br>
/sal/osl/unx/file.cxx: 887           in setAllowedPaths(std::basic_string_view<char16_t, std::char_traits<char16_t>>)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659047:         Security best practices violations  (STRING_OVERFLOW)<br>
/sal/osl/unx/file.cxx: 887             in setAllowedPaths(std::basic_string_view<char16_t, std::char_traits<char16_t>>)()<br>
881                 isResolved = !!realpath(folderPath.getStr(), resolvedPath);<br>
882                 notExists = !isResolved && errno == ENOENT;<br>
883     <br>
884                 if (notExists || !isResolved || strlen(resolvedPath) + aPath.getLength() - n + 1 >= PATH_MAX)<br>
885                     return; // too bad<br>
886                 else<br>
>>>     CID 1659047:         Security best practices violations  (STRING_OVERFLOW)<br>
>>>     You might overrun the 4096-character fixed-size string "resolvedPath" by copying "aPath.getStr() + n" without checking the length.<br>
887                     strcat(resolvedPath, aPath.getStr() + n);<br>
888             }<br>
889     <br>
890             if (isResolved)<br>
891             {<br>
892                 OString aPushPath(resolvedPath, strlen(resolvedPath));<br>
<br>
** CID 1659046:       Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
/sw/source/filter/md/mdtab.cxx: 70           in SwMarkdownParser::StartTable(int, int)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659046:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
/sw/source/filter/md/mdtab.cxx: 70             in SwMarkdownParser::StartTable(int, int)()<br>
64         if (m_pPam->GetPoint()->GetContentIndex())<br>
65             AppendTextNode(AM_SPACE);<br>
66         else<br>
67             AddParSpace();<br>
68     <br>
69         std::shared_ptr<MDTable> xTable = std::make_shared<MDTable>(this);<br>
>>>     CID 1659046:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)<br>
>>>     "xTable" is copied in a call to copy assignment "operator =", when it could be moved instead.<br>
70         m_xTable = xTable;<br>
71     <br>
72         const SwTable* pTable<br>
73             = m_xDoc->InsertTable(SwInsertTableOptions(SwInsertTableFlags::All, 1), *m_pPam->GetPoint(),<br>
74                                   nRow, nCol, text::HoriOrientation::FULL);<br>
75         m_xTable->SetTable(pTable, nRow, nCol);<br>
<br>
** CID 1659045:       Security best practices violations  (STRING_OVERFLOW)<br>
/sal/osl/unx/file.cxx: 931           in isForbidden(const rtl::OString &, unsigned int)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659045:         Security best practices violations  (STRING_OVERFLOW)<br>
/sal/osl/unx/file.cxx: 931             in isForbidden(const rtl::OString &, unsigned int)()<br>
925             bool notExists = !isResolved && errno == ENOENT;<br>
926             if (notExists) // folder doesn't exist, check parent, in the end of chain checks "."<br>
927                 return isForbidden(folderPath, nFlags);<br>
928             else if (!isResolved || strlen(resolvedPath) + filePath.getLength() - n + 1 >= PATH_MAX)<br>
929                 return true; // too bad<br>
930             else<br>
>>>     CID 1659045:         Security best practices violations  (STRING_OVERFLOW)<br>
>>>     You might overrun the 4096-character fixed-size string "resolvedPath" by copying "filePath->getStr() + n" without checking the length.<br>
931                 strcat(resolvedPath, filePath.getStr() + n);<br>
932         }<br>
933     <br>
934         const std::vector<OString> *pCheckPaths = &allowedPathsRead;<br>
935         if (nFlags & osl_File_OpenFlag_Write ||<br>
936             nFlags & osl_File_OpenFlag_Create)<br>
<br>
** CID 1659044:       Resource leaks  (RESOURCE_LEAK)<br>
/sal/osl/unx/pipe.cxx: 211           in osl_psz_createPipe(const char *, unsigned int, void *)()<br>
<br>
<br>
_____________________________________________________________________________________________<br>
*** CID 1659044:         Resource leaks  (RESOURCE_LEAK)<br>
/sal/osl/unx/pipe.cxx: 211             in osl_psz_createPipe(const char *, unsigned int, void *)()<br>
205     <br>
206         memset(&addr, 0, sizeof(addr));<br>
207     <br>
208         SAL_INFO("sal.osl.pipe", "new pipe on fd " << pPipe->m_Socket << " '" << name << "'");<br>
209     <br>
210         if (isForbidden(name, osl_File_OpenFlag_Create))<br>
>>>     CID 1659044:         Resource leaks  (RESOURCE_LEAK)<br>
>>>     Variable "pPipe" going out of scope leaks the storage it points to.<br>
211             return nullptr;<br>
212     <br>
213         addr.sun_family = AF_UNIX;<br>
214         // coverity[fixed_size_dest : FALSE] - safe, see check above<br>
215         strcpy(addr.sun_path, name.getStr());<br>
216     #if defined(FREEBSD)<br>
<br>
<br>
________________________________________________________________________________________________________<br>
To view the defects in Coverity Scan visit, <a href="https://scan.coverity.com/projects/libreoffice?tab=overview">
https://scan.coverity.com/projects/libreoffice?tab=overview</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/libreoffice/attachments/20250713/35957e68/attachment-0001.htm">https://lists.freedesktop.org/archives/libreoffice/attachments/20250713/35957e68/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
LibreOffice mailing list<br>
LibreOffice@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br>
<br>
------------------------------<br>
<br>
End of LibreOffice Digest, Vol 179, Issue 14<br>
********************************************<br>
</div>
</span></font></div>
</body>
</html>