Skip to content

SEGFAULT in prune_requests_older_than() if pruned_requests are not provided #2007

@akela1101

Description

@akela1101

Segfault happens here:

pruned_requests->push_back(it->first);

, if prune_requests_older_than() is called with default argument, while there's matching request to prune:

client->prune_requests_older_than(someTimeAgo /*, nullptr by default */);

The documentation says

[inout] pruned_requests Removed requests id will be pushed to the vector if a pointer is provided.

So I assume no pointer is a valid input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions