summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlexei Zavjalov <alexei.zavjalov@intel.com>2014-04-17 01:55:43 +0700
committerAlexei Zavjalov <alexei.zavjalov@intel.com>2014-04-17 17:06:39 +0700
commita1758d83e298c9ee31848bcae07c2a35f6efd618 (patch)
treea8444d43cbc686240e700daf594527a28bf63797 /compiler/optimizing/graph_visualizer.cc
parentb94fae66dac14be955c68028447cdad84ee22bf9 (diff)
String.IndexOf method handles negative start index value in incorrect way
The standard implementation of String.IndexOf converts the negative value of the start index to 0 and searching will start from the beginning of the string. But current implementation may start searching from the incorrect memory offset, that can lead to sigsegv or return incorrect result. This patch adds the handler for cases when fromIndex is negative. Change-Id: I3ac86290712789559eaf5e46bef0006872395bfa Signed-off-by: Alexei Zavjalov <alexei.zavjalov@intel.com>
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions