d20d226204
strlen() returns a size_t which usually is unsigned long. Since we assign it to intptr_t, we need to check for a potential integer overflow. The (albeit very unlikely) case is lengths>2G on 32bit platforms. BUG= R=asiva@google.com Review URL: https://codereview.chromium.org//23754006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27589 260f80e4-7a28-3924-810f-c04153c831b5