Skip to content

No input validation in syncWorkHeap's Push #1527

@dnkolegov

Description

@dnkolegov

The Push function of the syncWorkHeap type does not have input validation or type assertion checks. Therefore, calling that function with any type other than heapItem will lead to panic.

Note that Push is a public function; at the same time, it is not used currently.

The suggestion is to check that the input value holds the heapItem type and return otherwise.

Metadata

Metadata

Assignees

Labels

cleanupCode quality improvement

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions