| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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 | 12 天前 | |
libswoc: Validate CIDR prefix bounds (#13756) IPMask stores its width in one byte and did not check the parsed value, so a prefix such as /256 wrapped to /0 and matched every address in the family. The range and network parsers also accepted a prefix wider than the address, such as 10.0.0.1/33 or ::1/129. A mistyped prefix in a configuration that takes address ranges was therefore accepted as a different network instead of being rejected. This rejects a prefix that is wider than the address family. | 20 天前 | |
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 | 12 天前 | |
libswoc 1.5.15: version update (#12552) This updates our lib/swoc version to 1.5.15 to match the apache/trafficserver-libswoc version with which it is identical. This is a version metadata only update to document the parity. There is no functional change with this PR. | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 12 天前 | ||
| 20 天前 | ||
| 12 天前 | ||
| 1 年前 |