OSDN Git Service

Fix a string uint conversion bug in profiler
authorWei Jin <wejin@google.com>
Sat, 28 Jun 2014 00:44:18 +0000 (17:44 -0700)
committerCalin Juravle <calin@google.com>
Mon, 30 Jun 2014 11:24:47 +0000 (12:24 +0100)
commitf21f0a9abda9e7879a394ef823beb070df1a825f
treeedd001d667a2b26bc9898943c669958683cde908
parent9295d7da1410f4c38c609d4a52f4f5ed923cff27
Fix a string uint conversion bug in profiler

This CL fixes a potential string to uint32_t conversion bug caused by
using atoi. The bug can be trigger when the dex_pc or count pass
2^31 - 1. The CL replaces all string uint32_t conversions in profiler to
stroul.

Change-Id: I54f1aea9c5f5053d79813ea83050ace3749691d6
runtime/profiler.cc