Skip to content

Track allocated buffers in rpc-server #7407

@rgerganov

Description

@rgerganov

Currently the rpc-server doesn't perform any input validation and this may have security implications. Another problem is that it may create memory leaks if clients do not free allocated buffers before disconnect (PR #7378 tries to address this).

I think we can address both issues by using std::unordered_set to track allocated buffers and perform some additional checks without any noticeable performance degradation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions