TInlineAllocator can corrupt memory
TInlineAllocator can corrupt memory when calling
If allocation is done in dynamic buffer and
asked Oct 31 '17 at 06:11 PM in Bug Reports
If you know what changes should be made to fix the issue, I would suggest making a pull request on Github. This way, you can submit your proposed change and the developers can take a look at it. They'll respond to you once they've reviewed it either with questions or to let you know that it is being accepted. You can follow this guide if you do not know how to submit a Github pull request: https://wiki.unrealengine.com/Git_Pull_Requests
answered Nov 03 '17 at 08:00 PM
I'd go one step further and call this a non-issue.
As far as I understand the engine code, it's wrong to call ResizeAllocation() with PreviousNumElements > NumElements. The only thing that might be missing there would be an assertion that tells the user that invalid parameters were supplied.
Also, as PreviousNumElements is in all cases smaller than NumElements, calling RelocateItems with NumInlineElements as last parameter instead of PreviousNumElements will lead to issues, as in case bitwise relocation is not possible the destructor of the stored type might be called multiple times (or on otherwise invalid data).
Follow this question
Once you sign in you will be able to subscribe for any updates here