Skip to content

argparser allocator usage for the errorMessages is used inconsistently #3128

@IntegratedQuantum

Description

@IntegratedQuantum

The interface states that it should use the stackAllocator

/// `errorMessage` - out parameter used to store and return errors, if any occur. Has to be allocated with stackAllocator.

But most of the code actually uses the passed-in allocator for it which only happens to be the stack allocator (for now), and these errors are also hard to catch in a review.

I think the best solution would be to use a List instead of ListUnmanaged, so there is no chance to use the wrong allocator. The reason for using the unmanaged list is #1181.

This issue should not block the migration effort that has already started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working in the intended wayengine

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions