Browse Source
`std::vector::operator[]` does not perform a bounds check when accessing the underlying memory. If the length of the padding is 0, this would access an invalid memory location. Guard against this by ensuring that we have any padding to apply by constant hoisting the length computation and checking the value.pull/781/head
1 changed files with 5 additions and 3 deletions
Loading…
Reference in new issue