Unverified Commit 8628ca29 authored by Guillaume Chatelet's avatar Guillaume Chatelet Committed by GitHub
Browse files

[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: default avatarVitaly Buka <vitalybuka@google.com>
parent 077fe977
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment