Skip to content

LRUCache is not exception safe (potential bug) #21840

@alexey-milovidov

Description

@alexey-milovidov

cell.queue_iterator = queue.insert(queue.end(), key);

If insert throws exception (bad_alloc or similar), the Cell will be in incorrect state.

Found by @nvartolomei

Metadata

Metadata

Assignees

Labels

developmentDevelopement process & source code & implementation details

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions