Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a1d3d0c authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Better error message for bad array write."

am: e13eb650

Change-Id: If84767d4ef185072bd94b73e570f7f403d2a3d2f
parents 144559ce e13eb650
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {