Chromium Code Reviews
DescriptionEnforce length/size limits for variable size heap object in order to
avoid overflow.
For each variable size heap object, compute the maximum number of
elements and use that in the ::New functions to avoid overflow. If a
bad length/size reaches a ::New function, that is a FATAL error -- the
problem should have been caught earlier by the dart api or by the
library code.
Add "border guards" in the dart api and in library calls which cause
new variable size heap objects to be allocated. We check for invalid
length/size and throw explanatory error messages.
Committed: https://code.google.com/p/dart/source/detail?r=10130
Patch Set 1 #
Total comments: 14
Patch Set 2 : #
Total comments: 4
Patch Set 3 : #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||