mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix use-after-free of captured interface typedef in deleted generate branch (#8287)
This commit is contained in:
@@ -3269,6 +3269,7 @@ class ParamVisitor final : public VNVisitor {
|
||||
} else {
|
||||
nodep->unlinkFrBack();
|
||||
}
|
||||
V3LinkDotIfaceCapture::purgeDeletedSubtree(nodep);
|
||||
VL_DO_DANGLING(nodep->deleteTree(), nodep);
|
||||
// Normal edit rules will now recurse the replacement
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user