mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 16:28:22 +02:00
* ensure that the ATypeInfo parameter is valid before checking it
This commit is contained in:
parent
8592d42afa
commit
574d07041e
@ -3382,7 +3382,7 @@ end;
|
||||
function _LookupVtableInfoEx(AGInterface: TDefaultGenericInterface; ATypeInfo: PTypeInfo; ASize: SizeInt;
|
||||
AFactory: THashFactoryClass): Pointer;
|
||||
begin
|
||||
if ATypeInfo^.Kind in TComparerService.UseBinaryMethods then begin
|
||||
if not Assigned(ATypeInfo) or (ATypeInfo^.Kind in TComparerService.UseBinaryMethods) then begin
|
||||
System.Error(reInvalidCast);
|
||||
Exit(Nil);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user