libswoc: bound Vectray fixed span by element count (#13808) * libswoc: bound Vectray fixed span by element count FixedStore::span() returned all N inline slots instead of the _count constructed ones. begin()/end() and range-for walked past the last element, and ~FixedStore() ran destructors on slots that were never constructed, which is undefined behavior for non-trivial T. The existing tests only used N=1 filled to capacity, where N equals _count, so the bug never showed. Upstream libswoc has the same code. * Split Vectray partially filled store tests The iteration check and the destructor check cover separate effects of the span() bug. As separate test cases, a crash in the destructor check is not reported against the iteration check, and each name says what it covers. * Name Vectray span tests by the behavior checked
Solid Wall of C++ Library. Documentation.