diff options
| author | 2014-09-25 15:35:37 -0700 | |
|---|---|---|
| committer | 2014-09-25 16:51:29 -0700 | |
| commit | 6b604a1b0289e5e7211c2e5f8c4f395f51de7c3d (patch) | |
| tree | 2789123796907a61bdfbc9c6f5727ac6cda8f559 /compiler/optimizing/codegen_test.cc | |
| parent | e7e34d08cffbd9a43ca9b097f8c7fdd54fbeaa27 (diff) | |
Fix Class::IsInSamePackage to not read beyond the end of a StringPiece.
Fix length of string piece to be size_type rather than int because expecting
negatively sized strings is a bad idea and we should use unsigned types to
defensively guard against mistakes.
Remove max_size and capacity since the return type is inconsistent between
Google and the STL, and we don't need the functions.
Add a bound check in libartd to operator[] accesses.
Change-Id: I1b87a03d8fbd95e7dbb106745e304d1083898075
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
0 files changed, 0 insertions, 0 deletions