Add check to make sure the size of the consent UI header is at least the size of the header as known for the platform/OS version
This commit is contained in:
@@ -73,6 +73,11 @@ namespace Lithnet.CredentialProvider
|
||||
{
|
||||
throw new InvalidDataException($"The size of the data structure {this.header.Size} does not match the expected size {expectedSize}");
|
||||
}
|
||||
|
||||
if (HeaderSize > this.header.Size)
|
||||
{
|
||||
throw new InvalidDataException($"The size of the data structure {this.header.Size} is less than the expected header size {HeaderSize}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user