Commit fe9fc77
ORC-2027: [C++] Fix undefined behavior in DoubleColumnReader::readFloat()
### What changes were proposed in this pull request?
Unaligned reads are UB in C++. We can not guarantee that the `bufferPointer_` pointer is aligned by `alignof(int32_t)`.
### How was this patch tested?
Use UBsan to test in private repo.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2444 from HuaHuaY/fix_issue_2027.
Lead-authored-by: Zehua Zou <zehuazou2000@gmail.com>
Co-authored-by: Zehua Zou <41586196+HuaHuaY@users.noreply.github.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>
(cherry picked from commit c4fa9fa)
Signed-off-by: Gang Wu <ustcwg@gmail.com>1 parent bda8584 commit fe9fc77
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
0 commit comments