Closed nleach999 closed 1 year ago
InferCsharp win-x64 Results /home/runner/work/CxAnalytix/CxAnalytix/Libs/CxAuditTrailsDB/DbAccess.cs:96: error: Dotnet Resource Leak Leaked resource return of type CxAnalytix.CxAuditTrails.DB.DbAccess$FetchResults, Leaked resource con of type Microsoft.Data.SqlClient.SqlConnection in method "DbAccess$FetchResults DbAccess.FetchRecords(String,String,String,String,DateTime)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/CxRestContextBase.cs:127: error: Dotnet Resource Leak Leaked resource (output of System.Net.Http.FormUrlEncodedContent::.ctor() at Line 128) of type System.Net.Http.FormUrlEncodedContent in method "LoginToken CxRestContextBase.GetLoginToken(Dictionary`2<!0,!1>)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/MNO/CxMnoPolicies.cs:28: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxMnoPolicies.GetFlatPolicyNames(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastGenerateScanReport.cs:32: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxSastGenerateScanReport.ReadReportId(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastScanReportGenStatus.cs:30: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "CxSastScanReportGenStatus$GenStatus CxSastScanReportGenStatus.ReadStatus(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:995: error: Null Dereference
writeQueue
could be null (last assigned on line 809) and is dereferenced.
/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:1010: error: Null Dereference
curPathNode
could be null (last assigned on line 809) and is dereferenced.
Found 7 issues Issue Type(ISSUED_TYPE_ID): # Dotnet Resource Leak(DOTNET_RESOURCE_LEAK): 5 Null Dereference(NULLPTR_DEREFERENCE): 2
InferCsharp linux-x64 Results /home/runner/work/CxAnalytix/CxAnalytix/Libs/CxAuditTrailsDB/DbAccess.cs:96: error: Dotnet Resource Leak Leaked resource return of type CxAnalytix.CxAuditTrails.DB.DbAccess$FetchResults, Leaked resource con of type Microsoft.Data.SqlClient.SqlConnection in method "DbAccess$FetchResults DbAccess.FetchRecords(String,String,String,String,DateTime)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/CxRestContextBase.cs:127: error: Dotnet Resource Leak Leaked resource (output of System.Net.Http.FormUrlEncodedContent::.ctor() at Line 128) of type System.Net.Http.FormUrlEncodedContent in method "LoginToken CxRestContextBase.GetLoginToken(Dictionary`2<!0,!1>)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/MNO/CxMnoPolicies.cs:28: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxMnoPolicies.GetFlatPolicyNames(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastGenerateScanReport.cs:32: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "String CxSastGenerateScanReport.ReadReportId(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/Libs/CxRestClient/SAST/CxSastScanReportGenStatus.cs:30: error: Dotnet Resource Leak Leaked resource reader of type Newtonsoft.Json.Linq.JTokenReader in method "CxSastScanReportGenStatus$GenStatus CxSastScanReportGenStatus.ReadStatus(JToken)".
/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:995: error: Null Dereference
writeQueue
could be null (last assigned on line 809) and is dereferenced.
/home/runner/work/CxAnalytix/CxAnalytix/XForm/SastTransformer/Transformer.cs:1010: error: Null Dereference
curPathNode
could be null (last assigned on line 809) and is dereferenced.
Found 7 issues Issue Type(ISSUED_TYPE_ID): # Dotnet Resource Leak(DOTNET_RESOURCE_LEAK): 5 Null Dereference(NULLPTR_DEREFERENCE): 2
Description
New features for 2.1.1 release.
Resolves #54 Resolves #55
References
See release notes.
Testing
Compatibility was tested for both native MongoDB and DocumentDB.