Skip to content

fix incorrect usage of memcpySmall - #450

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-reinterpret-as
Feb 7, 2017
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-reinterpret-as

Conversation

@ztlpn

@ztlpn ztlpn commented Feb 3, 2017

Copy link
Copy Markdown
Contributor

ToFieldType value = 0;
memcpySmallAllowReadWriteOverflow15(
&value, &data_from[offset], std::min(sizeof(ToFieldType), offsets_from[i] - offset - 1));
memcpy(&value, &data_from[offset], std::min(sizeof(ToFieldType), offsets_from[i] - offset - 1));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked only superficially but these seem to be the only two places where memcpySmall is used to copy to integer values on the stack.

@alexey-milovidov
alexey-milovidov merged commit 3479a5d into master Feb 7, 2017
@ztlpn
ztlpn deleted the fix-reinterpret-as branch February 8, 2017 11:23
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Jul 24, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Aug 3, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Aug 15, 2023
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Aug 18, 2023
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Aug 18, 2023
binmahone pushed a commit to binmahone/ClickHouse that referenced this pull request Aug 25, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Aug 31, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Sep 12, 2023
binmahone pushed a commit to binmahone/ClickHouse that referenced this pull request Sep 20, 2023
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Sep 21, 2023
binmahone pushed a commit to binmahone/ClickHouse that referenced this pull request Sep 25, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Oct 12, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Nov 6, 2023
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Nov 20, 2023
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Nov 24, 2023
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Nov 27, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 5, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 6, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 18, 2023
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 19, 2023
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Dec 25, 2023
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Dec 26, 2023
loneylee pushed a commit to loneylee/ClickHouse that referenced this pull request Jan 2, 2024
…o ch column. (ClickHouse#450)

(cherry picked from commit 1f2ae61)
(cherry picked from commit 7e94060)
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Jan 11, 2024
…o ch column. (ClickHouse#450)

(cherry picked from commit 1f2ae61)
(cherry picked from commit 7e94060)
(cherry picked from commit 5d30bf3)
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Jan 16, 2024
…o ch column. (ClickHouse#450)

(cherry picked from commit 1f2ae61)
(cherry picked from commit 7e94060)
(cherry picked from commit 5d30bf3)
(cherry picked from commit 2263300)
(cherry picked from commit 2f66ad6)
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Jun 7, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Jun 17, 2024
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Jun 24, 2024
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Jul 9, 2024
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Jul 16, 2024
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Jul 29, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Aug 27, 2024
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Sep 2, 2024
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Sep 18, 2024
loneylee pushed a commit to loneylee/ClickHouse that referenced this pull request Oct 8, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Oct 8, 2024
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Oct 10, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Nov 13, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Nov 25, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 2, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 2, 2024
taiyang-li added a commit to bigo-sg/ClickHouse that referenced this pull request Dec 19, 2024
loneylee pushed a commit to loneylee/ClickHouse that referenced this pull request Dec 24, 2024
loneylee pushed a commit to loneylee/ClickHouse that referenced this pull request Jan 6, 2025
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Jan 17, 2025
zhanglistar pushed a commit to bigo-sg/ClickHouse that referenced this pull request Feb 12, 2025
zhanglistar pushed a commit to bigo-sg/ClickHouse that referenced this pull request Feb 14, 2025
zhanglistar pushed a commit to bigo-sg/ClickHouse that referenced this pull request Feb 18, 2025
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Feb 20, 2025
liuneng1994 pushed a commit to liuneng1994/ClickHouse that referenced this pull request Feb 24, 2025
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Apr 8, 2025
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants