Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files44
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Rpc/
- bin/
- obj/
- AccessCheckObjectTree.cs
- ArrayUtility.cs
- ChannelHelper.cs
- Common.csproj
- ConnectionFilter.cs
- DtypAutoGeneratedTypes.cs
- DtypAutoGeneratedTypesExtension.cs
- DtypSecurityStructures.cs
- DtypUtility.cs
- EndianUtility.cs
- EndpointManager.cs
- HRESULT.cs
- IHasInterrelatedFields.cs
- Int3264.cs
- IntPtrUtility.cs
- IpUtility.cs
- LdapExtensions.cs
- Logging.cs
- NativeMethods.cs
- NetApiStatus.cs
- NtStatus.cs
- ObjectUtility.cs
- PacketFilter.cs
- PduMarshaler.cs
- QueueManager.cs
- ReadOnlyDictionary.cs
- Rfc1035Utility.cs
- SafeIntPtr.cs
- StackEvent.cs
- StackException.cs
- StackFilter.cs
- StackPacket.cs
- StackTypes.cs
- SyncFilterQueue.cs
- Token.cs
- TypeCustomAttributeProvider.cs
- TypeMarshal.cs
- TypeMarshalSafeIntPtr.cs
- WellKnownSid.cs
- Win32ErrorCode_16.cs
- Win32ErrorCode_32.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/Common/TypeMarshalSafeIntPtr.cs
C# · 1,612 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.Protocols.TestTools.StackSdk.Messages.Runtime.Marshaling;
namespace Microsoft.Protocols.TestTools.StackSdk
{
/// <summary>
/// SafeIntPtr for TypeMarshal
/// </summary>
public class TypeMarshalSafeIntPtr : SafeIntPtr
{
/// <summary>
/// marshaller
/// </summary>
private Marshaler marshaller;
/// <summary>
/// Create in instance of TypeMarshalSafeIntPtr.
/// </summary>
/// <param name="marshaller">The marshaller.</param>
/// <param name="ptr">The pointer of unmanaged memory.</param>
internal TypeMarshalSafeIntPtr(Marshaler marshaller, IntPtr ptr)
: base(ptr)
{
this.marshaller = marshaller;
}
/// <summary>
/// Dispose method.
/// </summary>
/// <param name="disposing">
/// True to release both managed and unmanaged resources.<para/>
/// False to release unmanaged resources only.
/// </param>
protected override void Dispose(bool disposing)
{
if (disposing)
{
// Release managed resources.
if (marshaller != null)
{
marshaller.FreeMemory();
marshaller.Dispose();
marshaller = null;
}
}
base.Dispose(disposing);
}
}
}