aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/generate.h
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-12-04 10:57:35 +0100
committerGitHub <noreply@github.com>2023-12-04 10:57:35 +0100
commit8628ca29aa4714f99e865c99b9d510ad14897fdc (patch)
treed13281d776c1668aa0ebc30d418b3302e8d0eee0 /libcxx/include/__algorithm/generate.h
parent077fe9773632b955ad114eeeb4153c734a9f5172 (diff)
downloadllvm-8628ca29aa4714f99e865c99b9d510ad14897fdc.zip
llvm-8628ca29aa4714f99e865c99b9d510ad14897fdc.tar.gz
llvm-8628ca29aa4714f99e865c99b9d510ad14897fdc.tar.bz2
[libc] Fix UB in memory utils (#74295)
The [standard](https://eel.is/c++draft/expr.add#4.3) forbids forming pointers to invalid objects even if the pointer is never read from or written to. This patch makes sure that we don't do pointer arithmetic on invalid pointers. Co-authored-by: Vitaly Buka <vitalybuka@google.com>
Diffstat (limited to 'libcxx/include/__algorithm/generate.h')
0 files changed, 0 insertions, 0 deletions