DescriptionChecks CObject lengths in native API.
Also converts the API to use intptr_t instead of a mixture of int64_t and int. Internally all variable length objects have lengths and maximum values represented as intptr_t (actually Smi ranges). In order to check for these maximum lengths we need to have a common type for 32 and 64 bit platforms.
Helping constructs like IOBuffer can still use 64bit lengths, but have to check that there values are actually in the domain of intptr_t as soon as internal objects are created.
Addresses issue 4314.
BUG=
R=asiva@google.com, sgjesse@google.com
Committed: https://code.google.com/p/dart/source/detail?r=27395
Patch Set 1 #Patch Set 2 : Redo buffer changes #
Total comments: 4
Patch Set 3 : Addressed comments. #
Messages
Total messages: 6 (0 generated)
|