Affected by GO-2022-0392
and 4 other vulnerabilities
GO-2022-0392: Denial of service in go-ethereum due to CVE-2020-28362 in github.com/ethereum/go-ethereum
GO-2022-0456: DoS via malicious p2p message in Go Ethereum in github.com/ethereum/go-ethereum
GO-2022-0775: Erroneous Proof of Work calculation in geth in github.com/ethereum/go-ethereum
GO-2023-2046: Unbounded memory consumption in github.com/ethereum/go-ethereum
GO-2024-2819: Denial of Service in github.com/ethereum/go-ethereum
package
Version:
v1.8.18
Opens a new window with list of versions in this module.
Published: Nov 14, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1,355
Opens a new window with list of known importers.
Documentation
¶
Priority queue data structure.
func New(setIndex setIndexCallback) *Prque
Creates a new priority queue.
Checks whether the priority queue is empty.
Pops the value with the greates priority off the stack and returns it.
Currently no shrinking is done.
func (p *Prque) PopItem() interface{}
Pops only the item from the queue, dropping the associated priority value.
func (p *Prque) Push(data interface{}, priority int64)
Pushes a value with a given priority into the queue, expanding if necessary.
func (p *Prque) Remove(i int) interface{}
Remove removes the element with the given index.
Clears the contents of the priority queue.
Returns the number of element in the priority queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.