Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORC-1834: [C++] Fix undefined behavior
### What changes were proposed in this pull request? Unaligned reads are UB in C++, memcpy-ing zero bytes is UB either. ### How was this patch tested? Internal UBsan report was used to detect and fix this bug. Closes #2112 from georgthegreat/patch-3. Authored-by: Yuriy Chernyshov <[email protected]> Signed-off-by: Gang Wu <[email protected]> (cherry picked from commit ab084b5) Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information
e0fee1e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-Linter Report⚠️
Some files did not pass the configured checks!
clang-tidy (v12.0.0) reports: 1 concern(s)
c++/src/ColumnReader.cc:19:10: error: [clang-diagnostic-error]
Have any feedback or feature suggestions? Share it here.