Add parens to force the order of operations in an expression trying
authorJason Molenda <jmolenda@apple.com>
Sat, 9 Mar 2019 00:04:24 +0000 (00:04 +0000)
committerJason Molenda <jmolenda@apple.com>
Sat, 9 Mar 2019 00:04:24 +0000 (00:04 +0000)
commitcee6c47a62c4d043c00eed860dc3900ad180b067
tree16eb498d33d470eeee5e49ff169979726282575e
parent411210838d762303027f7ac8ddc12427d774b170
Add parens to force the order of operations in an expression trying
to do "databuffer + offset" so that we don't overflow the uint64_t's
we're using for addresses when working with high addresses.

Found with clang's ubsan while doing darwin kernel debugging.

<rdar://problem/48728940>

llvm-svn: 355761
lldb/source/Target/Memory.cpp