From 56ce7d629bb60000e731119c24d0f09f68f4147a Mon Sep 17 00:00:00 2001 From: Sergey Nikomarov Date: Sun, 29 Dec 2024 01:43:49 +0100 Subject: [PATCH 1/2] AC-333756: removed finalizers from the list of banned APIs --- .../ApiData/Data/BannedApis.txt | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt b/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt index 05dde10..cf8fab6 100644 --- a/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt +++ b/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt @@ -3669,7 +3669,6 @@ M:Microsoft.VisualBasic.CompilerServices-Operators.LikeObject(System.Object,Syst M:Microsoft.VisualBasic.CompilerServices-Operators.LikeString(System.String,System.String,Microsoft.VisualBasic.CompareMethod) M:Microsoft.VisualBasic.CompilerServices-ProjectData.CreateProjectError(System.Int32) M:Microsoft.VisualBasic.CompilerServices-ProjectData.EndApp -M:Microsoft.VisualBasic.CompilerServices-ProjectData.Finalize M:Microsoft.VisualBasic.CompilerServices-Utils.GetResourceString(System.String,System.String[]) M:Microsoft.VisualBasic.CompilerServices-Utils.MethodToString(System.Reflection.MethodBase) M:Microsoft.VisualBasic.CompilerServices-Utils.SetCultureInfo(System.Globalization.CultureInfo) @@ -3729,7 +3728,6 @@ M:Microsoft.VisualBasic-Strings.StrReverse(System.String) M:Microsoft.VisualBasic-Strings.Trim(System.String) M:Microsoft.VisualBasic-Strings.UCase(System.Char) M:Microsoft.VisualBasic-Strings.UCase(System.String) -M:Microsoft.Win32-RegistryKey.Finalize M:Microsoft.Win32-RegistryKey.System#IDisposable#Dispose M:Newtonsoft.Json-JsonConvert.set_DefaultSettings M:Newtonsoft.Json-JsonSerializerSettings.set_ReferenceResolverProvider @@ -3832,7 +3830,6 @@ M:System.ComponentModel.Composition.Hosting-TypeCatalog.GetExports(System.Compon M:System.ComponentModel.Composition.Primitives-ComposablePartException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) M:System.ComponentModel.Composition.Primitives-ComposablePartException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) M:System.ComponentModel.DataAnnotations-ValidationException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) -M:System.ComponentModel.Design-ComponentDesigner.Finalize M:System.ComponentModel.Design-DesignerActionListCollection.OnClear M:System.ComponentModel-TypeConverter+StandardValuesCollection.System.Collections.ICollection.CopyTo(Array, M:System.ComponentModel-TypeConverter+StandardValuesCollection.System.Collections.ICollection.get_Count() @@ -3874,7 +3871,6 @@ M:System.Data.Odbc-OdbcConnection.System#Data#IDbConnection#BeginTransaction M:System.Data.Odbc-OdbcConnection.System#Data#IDbConnection#BeginTransaction(System.Data.IsolationLevel) M:System.Data.Odbc-OdbcConnection.System#Data#IDbConnection#CreateCommand M:System.Data.Odbc-OdbcDataAdapter.Dispose(System.Boolean) -M:System.Data.Odbc-OdbcDataReader.Finalize M:System.Data.Odbc-OdbcDataReader.GetData(System.Int32) M:System.Data.Odbc-OdbcDataReader.System#Collections#IEnumerable#GetEnumerator M:System.Data.Odbc-OdbcDataReader.System#IDisposable#Dispose @@ -3894,14 +3890,12 @@ M:System.Data.OleDb-OleDbCommandBuilder.RefreshSchema M:System.Data.OleDb-OleDbConnection.EnlistDistributedTransaction(System.EnterpriseServices.ITransaction) M:System.Data.OleDb-OleDbConnectionStringBuilder.GetProperties(System.Collections.Hashtable) M:System.Data.OleDb-OleDbDataAdapter.Dispose(System.Boolean) -M:System.Data.OleDb-OleDbDataReader.Finalize M:System.Data.OleDb-OleDbFactory.CreatePermission(System.Security.Permissions.PermissionState) M:System.Data.OleDb-OleDbPermission.FromXml(System.Security.SecurityElement) M:System.Data.OleDb-OleDbPermission.Intersect(System.Security.IPermission) M:System.Data.OleDb-OleDbPermission.IsSubsetOf(System.Security.IPermission) M:System.Data.OleDb-OleDbPermission.ToXml M:System.Data.OleDb-OleDbPermission.Union(System.Security.IPermission) -M:System.Data.OleDb-OleDbTransaction.Finalize M:System.Data.SqlClient-SqlClientFactory.CreateDataSourceEnumerator M:System.Data.SqlClient-SqlClientFactory.CreatePermission(System.Security.Permissions.PermissionState) M:System.Data.SqlClient-SqlClientFactory.System#IServiceProvider#GetService(System.Type) @@ -3959,7 +3953,6 @@ M:System.Data.SqlTypes-SqlFileStream.BeginWrite(System.Byte[],System.Int32,Syste M:System.Data.SqlTypes-SqlFileStream.Dispose(System.Boolean) M:System.Data.SqlTypes-SqlFileStream.EndRead(System.IAsyncResult) M:System.Data.SqlTypes-SqlFileStream.EndWrite(System.IAsyncResult) -M:System.Data.SqlTypes-SqlFileStream.Finalize M:System.Data.SqlTypes-SqlFileStream.ReadByte M:System.Data.SqlTypes-SqlFileStream.WriteByte(System.Byte) M:System.Data.SqlTypes-SqlNullValueException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) @@ -3981,8 +3974,6 @@ M:System.DirectoryServices.Protocols-ModifyDNRequest.ToXmlNode(System.Xml.XmlDoc M:System.DirectoryServices.Protocols-ModifyRequest.ToXmlNode(System.Xml.XmlDocument) M:System.DirectoryServices.Protocols-SearchRequest.#ctor(System.String,System.Xml.XmlDocument,System.DirectoryServices.Protocols.SearchScope,System.String[]) M:System.DirectoryServices.Protocols-SearchRequest.ToXmlNode(System.Xml.XmlDocument) -M:System.Drawing-FontConverter.Finalize -M:System.Drawing-FontConverter+FontNameConverter.Finalize M:System.Globalization-DateTimeFormatInfo.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) M:System.Globalization-GregorianCalendar.AddWeeks(System.DateTime,System.Int32) M:System.Globalization-GregorianCalendar.GetWeekOfYear(System.DateTime,System.Globalization.CalendarWeekRule,System.DayOfWeek) @@ -4048,7 +4039,6 @@ M:System.IO.Pipes-NamedPipeServerStream.#ctor(System.String,System.IO.Pipes.Pipe M:System.IO.Pipes-PipeStream.GetAccessControl M:System.IO.Pipes-PipeStream.SetAccessControl(System.IO.Pipes.PipeSecurity) M:System.IO-Stream.System#IDisposable#Dispose -M:System.IO-StreamWriter.Finalize M:System.IO-TextReader.System#IDisposable#Dispose M:System.IO-TextWriter.System#IDisposable#Dispose M:System.Linq.Expressions-LambdaExpression.CompileToMethod(System.Reflection.Emit.MethodBuilder,System.Runtime.CompilerServices.DebugInfoGenerator) @@ -4099,7 +4089,6 @@ M:System.Net.Sockets-NetworkStream.System#IDisposable#Dispose M:System.Net.Sockets-Socket.GetHashCode M:System.Net.Sockets-Socket.System#IDisposable#Dispose M:System.Net.Sockets-TcpClient.System#IDisposable#Dispose -M:System.Net.Sockets-TcpListener.Finalize M:System.Net.Sockets-UdpClient.System#IDisposable#Dispose M:System.Net-TransportContext.GetTlsTokenBindings M:System.Net-WebRequest.RegisterPortableWebRequestCreator(System.Net.IWebRequestCreate) @@ -4388,33 +4377,24 @@ M:System.Security.Claims-PrincipalExtensions.GetUserName(System.Security.Claims. M:System.Security.Claims-PrincipalExtensions.IsSignedIn(System.Security.Claims.ClaimsPrincipal) M:System.Security.Cryptography-AsymmetricAlgorithm.System#IDisposable#Dispose M:System.Security.Cryptography-CryptoStream.Close -M:System.Security.Cryptography-CryptoStream.Finalize M:System.Security.Cryptography-CryptoStream.System#IDisposable#Dispose M:System.Security.Cryptography-CspParameters.#ctor(System.Int32,System.String,System.String,System.Security.AccessControl.CryptoKeySecurity,System.IntPtr) M:System.Security.Cryptography-CspParameters.#ctor(System.Int32,System.String,System.String,System.Security.AccessControl.CryptoKeySecurity,System.Security.SecureString) M:System.Security.Cryptography-DSACryptoServiceProvider.Dispose(System.Boolean) -M:System.Security.Cryptography-DSACryptoServiceProvider.Finalize M:System.Security.Cryptography-ECDiffieHellmanCng.FromXmlString(System.String) M:System.Security.Cryptography-ECDiffieHellmanCng.ToXmlString(System.Boolean) M:System.Security.Cryptography-ECDsaCng.FromXmlString(System.String) M:System.Security.Cryptography-ECDsaCng.ToXmlString(System.Boolean) M:System.Security.Cryptography-FromBase64Transform.System#IDisposable#Dispose M:System.Security.Cryptography-HashAlgorithm.System#IDisposable#Dispose -M:System.Security.Cryptography-HMACSHA1.Finalize -M:System.Security.Cryptography-KeyedHashAlgorithm.Finalize M:System.Security.Cryptography-MD5CryptoServiceProvider.Dispose(System.Boolean) -M:System.Security.Cryptography-MD5CryptoServiceProvider.Finalize M:System.Security.Cryptography-MD5CryptoServiceProvider.HashCore(System.Byte[],System.Int32,System.Int32) M:System.Security.Cryptography-MD5CryptoServiceProvider.HashFinal -M:System.Security.Cryptography-PasswordDeriveBytes.Finalize -M:System.Security.Cryptography.Pkcs-ContentInfo.Finalize M:System.Security.Cryptography.Pkcs-EnvelopedCms.#ctor(System.Security.Cryptography.Pkcs.SubjectIdentifierType,System.Security.Cryptography.Pkcs.ContentInfo,System.Security.Cryptography.Pkcs.AlgorithmIdentifier) M:System.Security.Cryptography.Pkcs-EnvelopedCms.#ctor(System.Security.Cryptography.Pkcs.SubjectIdentifierType,System.Security.Cryptography.Pkcs.ContentInfo) M:System.Security.Cryptography.Pkcs-EnvelopedCms.Encrypt -M:System.Security.Cryptography-RNGCryptoServiceProvider.Finalize M:System.Security.Cryptography-RSACng.DecryptValue(System.Byte[]) M:System.Security.Cryptography-RSACng.EncryptValue(System.Byte[]) -M:System.Security.Cryptography-RSACryptoServiceProvider.Finalize M:System.Security.Cryptography-SHA1Managed.Dispose(System.Boolean) M:System.Security.Cryptography-SHA1Managed.HashCore(System.Byte[],System.Int32,System.Int32) M:System.Security.Cryptography-SHA1Managed.HashFinal @@ -4427,7 +4407,6 @@ M:System.Security.Cryptography-SHA384Managed.HashFinal M:System.Security.Cryptography-SHA512Managed.Dispose(System.Boolean) M:System.Security.Cryptography-SHA512Managed.HashCore(System.Byte[],System.Int32,System.Int32) M:System.Security.Cryptography-SHA512Managed.HashFinal -M:System.Security.Cryptography-SymmetricAlgorithm.Finalize M:System.Security.Cryptography-SymmetricAlgorithm.System#IDisposable#Dispose M:System.Security.Cryptography-ToBase64Transform.System#IDisposable#Dispose M:System.Security-HostProtectionException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) @@ -4446,7 +4425,6 @@ M:System.Security.Policy-StrongName.Clone M:System.Security.Policy-Url.Clone M:System.Security.Policy-Zone.Clone M:System.Security.Principal-WindowsIdentity.#ctor(System.String,System.String) -M:System.Security.Principal-WindowsIdentity.Finalize M:System.Security.Principal-WindowsIdentity.Impersonate M:System.Security.Principal-WindowsIdentity.Impersonate(System.IntPtr) M:System.Security-SecurityException.#ctor(System.String,System.Object,System.Object,System.Reflection.MethodInfo,System.Object,System.Security.IPermission) @@ -4816,13 +4794,11 @@ M:System.ServiceProcess-ServiceControllerPermissionEntryCollection.OnRemove(Syst M:System.ServiceProcess-ServiceControllerPermissionEntryCollection.OnSet(System.Int32,System.Object,System.Object) M:System-String.Concat(System.Object,System.Object,System.Object,System.Object,__arglist) M:System.Text-ASCIIEncoding.GetString(System.Byte[]) -M:System.Text.RegularExpressions-Regex.Finalize M:System.Text-UnicodeEncoding.GetBytes(System.String) M:System.Text-UTF8Encoding.GetBytes(System.String) M:System.Threading-AsyncFlowControl.System#IDisposable#Dispose M:System.Threading-AutoResetEvent.Reset M:System.Threading-AutoResetEvent.Set -M:System.Threading-CompressedStack.Finalize M:System.Threading-EventWaitHandle.#ctor(System.Boolean,System.Threading.EventResetMode,System.String,System.Boolean@,System.Security.AccessControl.EventWaitHandleSecurity) M:System.Threading-EventWaitHandle.GetAccessControl M:System.Threading-EventWaitHandle.OpenExisting(System.String,System.Security.AccessControl.EventWaitHandleRights) @@ -4836,19 +4812,15 @@ M:System.Threading-Mutex.GetAccessControl M:System.Threading-Mutex.OpenExisting(System.String,System.Security.AccessControl.MutexRights) M:System.Threading-Mutex.SetAccessControl(System.Security.AccessControl.MutexSecurity) M:System.Threading-Mutex.TryOpenExisting(System.String,System.Security.AccessControl.MutexRights,System.Threading.Mutex@) -M:System.Threading-RegisteredWaitHandle.Finalize M:System.Threading-Semaphore.#ctor(System.Int32,System.Int32,System.String,System.Boolean@,System.Security.AccessControl.SemaphoreSecurity) M:System.Threading-Semaphore.GetAccessControl M:System.Threading-Semaphore.OpenExisting(System.String,System.Security.AccessControl.SemaphoreRights) M:System.Threading-Semaphore.SetAccessControl(System.Security.AccessControl.SemaphoreSecurity) M:System.Threading-Semaphore.TryOpenExisting(System.String,System.Security.AccessControl.SemaphoreRights,System.Threading.Semaphore@) -M:System.Threading.Tasks-TaskScheduler.Finalize M:System.Threading-Thread.System#Runtime#InteropServices#_Thread#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr) M:System.Threading-Thread.System#Runtime#InteropServices#_Thread#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr) M:System.Threading-Thread.System#Runtime#InteropServices#_Thread#GetTypeInfoCount(System.UInt32@) M:System.Threading-Thread.System#Runtime#InteropServices#_Thread#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr) -M:System.Threading-Timer.Finalize -M:System.Threading-WaitHandle.Finalize M:System.Threading-WaitHandle.System#IDisposable#Dispose M:System-Type.System#Runtime#InteropServices#_Type#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr) M:System-Type.System#Runtime#InteropServices#_Type#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr) From 869fdcbc7afd7e8fd1418473f09d4a70d24a3501 Mon Sep 17 00:00:00 2001 From: Sergey Nikomarov Date: Sun, 29 Dec 2024 01:51:13 +0100 Subject: [PATCH 2/2] AC-333756: removed incorrect entires for crypto algorithm APIs --- .../CoreCompatibilyzer/ApiData/Data/BannedApis.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt b/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt index cf8fab6..1db4a88 100644 --- a/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt +++ b/src/CoreCompatibilyzer/CoreCompatibilyzer/ApiData/Data/BannedApis.txt @@ -4388,8 +4388,6 @@ M:System.Security.Cryptography-ECDsaCng.ToXmlString(System.Boolean) M:System.Security.Cryptography-FromBase64Transform.System#IDisposable#Dispose M:System.Security.Cryptography-HashAlgorithm.System#IDisposable#Dispose M:System.Security.Cryptography-MD5CryptoServiceProvider.Dispose(System.Boolean) -M:System.Security.Cryptography-MD5CryptoServiceProvider.HashCore(System.Byte[],System.Int32,System.Int32) -M:System.Security.Cryptography-MD5CryptoServiceProvider.HashFinal M:System.Security.Cryptography.Pkcs-EnvelopedCms.#ctor(System.Security.Cryptography.Pkcs.SubjectIdentifierType,System.Security.Cryptography.Pkcs.ContentInfo,System.Security.Cryptography.Pkcs.AlgorithmIdentifier) M:System.Security.Cryptography.Pkcs-EnvelopedCms.#ctor(System.Security.Cryptography.Pkcs.SubjectIdentifierType,System.Security.Cryptography.Pkcs.ContentInfo) M:System.Security.Cryptography.Pkcs-EnvelopedCms.Encrypt