[SR-1286] Incorrect memory management in PotentialArchetype::getNestedType #43894
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
good first issue
Good for newcomers
Additional Detail from JIRA
md5: cd28299a77346e38defc2cc95944ee39
Issue Description:
PotentialArchetype::getNestedType() has a memory management error that causes compiler crashes.
The problem is `nested`. It is a reference into the NestedTypes collection. The recursive call to getNestedType() can modify NestedTypes, which invalidates the `nested` variable in the outer getNestedType() call.
This causes compiler_crashers/28279-swift-archetypebuilder-potentialarchetype-getnestedtype.swift
The text was updated successfully, but these errors were encountered: