Subj : New Defects reported by Coverity Scan for Synchronet To : All From : scan-admin@coverity.com Date : Sun Jul 06 2025 12:47:03 ----==_mimepart_686a7047ce71_192e802d9f7544199c8471c Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan. 2 new defect(s) introduced to Synchronet found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 569480: Resource leaks (RESOURCE_LEAK) /js_system.c: 1781 in js_notify() _____________________________________________________________________________________________ *** CID 569480: Resource leaks (RESOURCE_LEAK) /js_system.c: 1781 in js_notify() 1775 if (msg == NULL) 1776 return JS_TRUE; 1777 } 1778 1779 if (argc > 3 && !JSVAL_NULL_OR_VOID(argv[3])) { 1780 if ((js_str = JS_ValueToString(cx, argv[3])) == NULL) >>> CID 569480: Resource leaks (RESOURCE_LEAK) >>> Variable "msg" going out of scope leaks the storage it points to. 1781 return JS_FALSE; 1782 1783 JSSTRING_TO_MSTRING(cx, js_str, replyto, NULL); 1784 HANDLE_PENDING(cx, replyto); 1785 if (replyto == NULL) 1786 return JS_TRUE; ** CID 569479: Resource leaks (RESOURCE_LEAK) /js_system.c: 1793 in js_notify() _____________________________________________________________________________________________ *** CID 569479: Resource leaks (RESOURCE_LEAK) /js_system.c: 1793 in js_notify() 1787 } 1788 1789 JSSTRING_TO_MSTRING(cx, js_subj, subj, NULL); 1790 HANDLE_PENDING(cx, subj); 1791 if (subj == NULL) { 1792 free(msg); >>> CID 569479: Resource leaks (RESOURCE_LEAK) >>> Variable "replyto" going out of scope leaks the storage it points to. 1793 return JS_TRUE; 1794 } 1795 1796 rc = JS_SUSPENDREQUEST(cx); 1797 ret = notify(sys->cfg, usernumber, subj, msg, replyto) == 0; 1798 free(subj); ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview ----==_mimepart_686a7047ce71_192e802d9f7544199c8471c Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit New Defects Reported - Synchronet

Hi,

Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.

Defect Details

** CID 569480:       Resource leaks  (RESOURCE_LEAK)
/js_system.c: 1781           in js_notify()


_____________________________________________________________________________________________
*** CID 569480:         Resource leaks  (RESOURCE_LEAK)
/js_system.c: 1781             in js_notify()
1775     		if (msg == NULL)
1776     			return JS_TRUE;
1777     	}
1778
1779     	if (argc > 3 && !JSVAL_NULL_OR_VOID(argv[3])) {
1780     		if ((js_str = JS_ValueToString(cx, argv[3])) == NULL)
>>>     CID 569480:         Resource leaks  (RESOURCE_LEAK)
>>>     Variable "msg" going out of scope leaks the storage it points to.
1781     			return JS_FALSE;
1782
1783     		JSSTRING_TO_MSTRING(cx, js_str, replyto, NULL);
1784     		HANDLE_PENDING(cx, replyto);
1785     		if (replyto == NULL)
1786     			return JS_TRUE;

** CID 569479:       Resource leaks  (RESOURCE_LEAK)
/js_system.c: 1793           in js_notify()


_____________________________________________________________________________________________
*** CID 569479:         Resource leaks  (RESOURCE_LEAK)
/js_system.c: 1793             in js_notify()
1787     	}
1788
1789     	JSSTRING_TO_MSTRING(cx, js_subj, subj, NULL);
1790     	HANDLE_PENDING(cx, subj);
1791     	if (subj == NULL) {
1792     		free(msg);
>>>     CID 569479:         Resource leaks  (RESOURCE_LEAK)
>>>     Variable "replyto" going out of scope leaks the storage it points to.
1793     		return JS_TRUE;
1794     	}
1795
1796     	rc = JS_SUSPENDREQUEST(cx);
1797     	ret = notify(sys->cfg, usernumber, subj, msg, replyto) == 0;
1798     	free(subj);

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team

----==_mimepart_686a7047ce71_192e802d9f7544199c8471c-- --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .