Chromium Code Reviews
DescriptionChange reinterpret_cast to std::copy to avoid undefined behavior
It seems like the reinterpret_cast is not valid here and should be
changed to std::copy or memcpy. Probably dereferencing the given pointer
is undefined behavior:
http://en.cppreference.com/w/cpp/language/reinterpret_cast
BUG=722170
Review-Url: https://codereview.chromium.org/2876373002
Cr-Commit-Position: refs/heads/master@{#472717}
Committed: https://chromium.googlesource.com/chromium/src/+/88b9bc14b5d592e258623f27363d768ec25ce05b
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|
|||||||||||||||||||