aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2022-01-15 02:09:19 +0000
committerSteven Moreland <smoreland@google.com>2022-01-18 19:06:47 +0000
commit3fbc16e26f9f6b14a27b572f35df09fd7b067f2c (patch)
tree849fd2214db266c373302016b342d5193312bfbd /tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp
parentf5d7608d890eeb9279de69df10b657b9caa8beda (diff)
downloadaidl-3fbc16e26f9f6b14a27b572f35df09fd7b067f2c.tar.gz
sized writes is size >= 4
because it includes the size Fixes: 211810857 Test: atest aidl_integration_test Change-Id: I508230aaa8b6f212e1e1a33874454f827d956d98
Diffstat (limited to 'tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp')
-rw-r--r--tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp b/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp
index 05f0636e..bd3bdc26 100644
--- a/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp
+++ b/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/ParcelableForToString.cpp
@@ -11,7 +11,7 @@ namespace tests {
if (((_aidl_ret_status) != (::android::OK))) {
return _aidl_ret_status;
}
- if (_aidl_parcelable_raw_size < 0) return ::android::BAD_VALUE;
+ if (_aidl_parcelable_raw_size < 4) return ::android::BAD_VALUE;
size_t _aidl_parcelable_size = static_cast<size_t>(_aidl_parcelable_raw_size);
if (_aidl_start_pos > SIZE_MAX - _aidl_parcelable_size) return ::android::BAD_VALUE;
if (_aidl_parcel->dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) {