ahausladen / JsonDataObjects

JSON parser for Delphi 2009 and newer
MIT License
413 stars 160 forks source link

uninitialized null type #75

Closed attikov closed 1 month ago

attikov commented 1 year ago

in class operator TJsonDataValueHelper.Implicit(const Value: Variant): TJsonDataValueHelper;

{$IFDEF AUTOREFCOUNT} if Result.FData.FObj <> nil then Result.FData.FObj := nil; {$ENDIF AUTOREFCOUNT}

this is (the directive) preventing to initialize the FObj to nil when the passed parameter is "null" causing random AV's (jdtObject with trash addresses)