OSDN Git Service

[DO NOT MERGE] Throw exception if slot has invalid offset
authorFyodor Kupolov <fkupolov@google.com>
Wed, 22 Feb 2017 22:12:50 +0000 (14:12 -0800)
committerFyodor Kupolov <fkupolov@google.com>
Fri, 3 Mar 2017 23:37:53 +0000 (23:37 +0000)
commit69e347f7ef91c5b708de72e7b4b10a067d1ccfe4
tree4ca1a316fd88cecb12cae4b7204c95de709ddb8a
parent3e4faac39f77e3ad86cdca528d8981cb0c00daa0
[DO NOT MERGE] Throw exception if slot has invalid offset

Previously the process would crash, which is OK, but complicates testing.

Test: cts-tradefed run cts --module CtsContentTestCases
      --test android.content.cts.ContentProviderCursorWindowTest
Bug: 34128677

Change-Id: I5b50982d77ec65c442fbb973d14c85a5c29c43c7
(cherry picked from commit eb6de6f5f10148b9f81f9c0074d1e1f7af21bfb0)
core/jni/android_database_CursorWindow.cpp