mirror of
https://github.com/verilator/verilator.git
synced 2026-08-29 09:20:11 +02:00
Fix heap-use-after-free in VlRNG::VlRNG() (#7865)
This commit is contained in:
@@ -61,6 +61,7 @@ David Turner
|
||||
Dercury
|
||||
Diego Roux
|
||||
Dominick Grochowina
|
||||
Dragon-Git
|
||||
Don Williamson
|
||||
Drew Ranck
|
||||
Drew Taussig
|
||||
|
||||
@@ -337,6 +337,7 @@ public:
|
||||
|
||||
~VlProcess() {
|
||||
if (m_parentp) m_parentp->detach(this);
|
||||
if (t_currentp == this) t_currentp = m_parentp.get();
|
||||
}
|
||||
|
||||
void attach(VlProcess* childp) { m_children.insert(childp); }
|
||||
|
||||
Reference in New Issue
Block a user