Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid invalid access into random region in memory in OperatorUti…
…ls (#12253) Summary: Pull Request resolved: #12253 There are 2 bugs in processEncodedFilterResults: 1. We may call bits::isBitSet(values, index) and then rows.isValid(i), this means we may be passing in an invalid index to `bits::isBitSet(values, index)`. We need to call `rows.isValid(i)` before `bits::isBitSet(values, index)`. Because index may give a bogus value if it is not valid 2. We may access an invalid value in index via `auto index = indices[i];` if i is not valid. Fix is to check if the row is valid before processing Reviewed By: spershin Differential Revision: D69095863 fbshipit-source-id: 39ea8e4ced8f523f40387293848017035ac1a012
- Loading branch information