forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ubsan](PODArray)Avoid applying non-zero offset to null pointer (apac…
…he#41525) The original code would generate a null c_end when there is no padding. before ``` static constexpr char* null = pad_left ? const_cast<char*>(empty_pod_array) + EmptyPODArraySize : nullptr; ``` now ``` static constexpr char* null = const_cast<char*>(empty_pod_array) + pad_left; ```
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters