swift
81a71d3d - KeyPath: Fix out-of-bounds access when instantiating keypaths with optional chaining components.

Commit
7 years ago
KeyPath: Fix out-of-bounds access when instantiating keypaths with optional chaining components. When we pre-scan the components of a key path pattern to determine its runtime type and instance size, we would short-circuit upon seeing an optional-chaining component, since that makes a key path definitely read-only, but the loop also accumulates the size of the instance we're supposed to allocate, so…bad stuff happened. Leave out the short-circuit, fixing SR-6096 | rdar://problem/34889333 .
Author
Committer
Parents
Loading