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>
Sat, 4 Mar 2017 01:35:49 +0000 (01:35 +0000)
commit8aee0b25166f21d6d732b2b09bf7a82948b31dce
tree5ea0cd2e55f3e25d394e48dc023890900a62d9ba
parent6f754e48e95410d00382c9a6b694f0a8a655eb63
[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