lumberyard icon indicating copy to clipboard operation
lumberyard copied to clipboard

Avoid dangling pointer in variant reflection.

Open yuriy0 opened this issue 6 years ago • 1 comments

The callback will sometimes store the pointer to the class element (fourth arg), e.g. InstanceDataHierarchy::Build

Issue #, if available:

Description of changes: Title says it all. Current code takes a pointer to a temporary variable which is stored and later accessed after it is no longer valid.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

yuriy0 avatar Aug 27 '19 15:08 yuriy0

Hi @yuriy0, thanks for contributing to LY we'll take a look at the change.

sconel avatar Aug 27 '19 18:08 sconel