aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2011-02-10 16:46:55 -0800
committerCarl Shapiro <cshapiro@google.com>2011-02-11 14:51:56 -0800
commit3453a36d129597ecfe7e6bb699ce3ecdaee01cb1 (patch)
tree9d38df68556b77eb1dfedf9458993da3f776cff8 /vm/compiler/codegen/arm/CodegenDriver.c
parent719e14a06a328597b773fe347ca4ffb962716da5 (diff)
Fast fail impossible allocations.
If the size_t type cannot be used to represent any component of an array size the allocation is be rejected. With this change, overflow is checked for in the element size computation and total array size computation. More preconditions are checked by asserts. Misleading comments have been removed. Change-Id: I067869c3404b9da591939555c6f9904f52ca7bd7
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions