Skip to content

Commit 928d815

Browse files
committed
Ensure resolution occurs once; fix SR-6391.
This commit ensures that the `resolve` functionality only calculates addresses and names once, as appears to be originally intended. Furthermore, this mitigates a bug where addresses would be endlessly appended to the `addresses` array, causing long term unbounded heap growth.
1 parent 79b80a8 commit 928d815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Foundation/Host.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ open class Host: NSObject {
9595
}
9696
ifa = ifaValue.ifa_next
9797
}
98+
_resolved = true
9899
#endif
99100
}
100101

0 commit comments

Comments
 (0)