diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-02-01 09:29:17 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-02-01 09:29:17 +0000 |
commit | f8d0f18fac7e16984163ccaef3d6d7ad0521c228 (patch) | |
tree | 2b6f3f5664069d673db59fa43f89d6be65f7829f /lldb/packages/Python/lldbsuite/test/python_api/default-constructor | |
parent | c2c8ca1ce3de4d9d4013ab6da5d759f59515ec78 (diff) | |
download | bcm5719-llvm-f8d0f18fac7e16984163ccaef3d6d7ad0521c228.tar.gz bcm5719-llvm-f8d0f18fac7e16984163ccaef3d6d7ad0521c228.zip |
[analyzer] Use a wider integer type for an array index.
Avoids unexpected overflows while performing pointer arithmetics in 64-bit code.
Moreover, neither PointerDiffType nor 'int' can be used as a common array index
type because arrays may have size (and indexes) more than PTRDIFF_MAX but less
than SIZE_MAX.
Patch by Aleksei Sidorin!
Differential Revision: http://reviews.llvm.org/D16063
llvm-svn: 259345
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/default-constructor')
0 files changed, 0 insertions, 0 deletions