mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #6577 from tamasvajk/fix/cil-modified-pointer
C#: Temporarily extract modified pointers as unmodified during CIL ex…
This commit is contained in:
@@ -11,6 +11,14 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
public PointerType(Context cx, Type pointee) : base(cx)
|
||||
{
|
||||
this.pointee = pointee;
|
||||
|
||||
if (pointee is ModifiedType mt)
|
||||
{
|
||||
cx.Extractor.Logger.Log(
|
||||
Util.Logging.Severity.Info,
|
||||
$"Pointer to modified type {pointee.GetQualifiedName()} is changed to {mt.Unmodified.GetQualifiedName()}");
|
||||
this.pointee = mt.Unmodified;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
|
||||
Reference in New Issue
Block a user