diff options
| author | 2019-10-31 11:26:55 -0700 | |
|---|---|---|
| committer | 2019-10-31 11:26:55 -0700 | |
| commit | 83a4b3a2299741a62877cd44efad0b6e46d15c06 (patch) | |
| tree | 5c18a67fef89c58a0596e021c570b7d0fa425b78 | |
| parent | 3e4d8f04f3dc14a996dfce443e213d407532046b (diff) | |
| parent | 0a1d3d0cf81b117c92e98f680c057b655d1584a0 (diff) | |
Merge "Better error message for bad array write." am: e13eb650d7
am: 0a1d3d0cf8
Change-Id: I721553e1dc86adca31354e4358d1f540837d95d7
| -rw-r--r-- | libs/binder/ndk/parcel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/ndk/parcel.cpp b/libs/binder/ndk/parcel.cpp index ae2276e794..f18e118bc9 100644 --- a/libs/binder/ndk/parcel.cpp +++ b/libs/binder/ndk/parcel.cpp @@ -50,7 +50,7 @@ binder_status_t WriteAndValidateArraySize(AParcel* parcel, bool isNullArray, int if (length < -1) return STATUS_BAD_VALUE; if (!isNullArray && length < 0) { - LOG(ERROR) << __func__ << ": null array must be used with length == -1."; + LOG(ERROR) << __func__ << ": non-null array but length is " << length; return STATUS_BAD_VALUE; } if (isNullArray && length > 0) { |