commit | 3f76bf5b23e518aec7799e03a981e1251ebe2363 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Jul 07 20:03:44 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jul 07 20:03:44 2023 +0000 |
tree | 5541a173814042ce95c03420bcd8a8f5bf5ea810 | |
parent | 4eae019584111353cf38ecad378265986f96e257 [diff] | |
parent | b47a11c1d549168fd0937648e38a9f8beb3ae1c7 [diff] |
Merge "Clarify null-termination of name field" into main am: 8328cbb343 am: b47a11c1d5 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2651037 Change-Id: Ib526ad1afd6d85d3ed1fe9a8075685d4ba07080b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/graphics/allocator/aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.aidl b/graphics/allocator/aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.aidl index 50aa2b7..7194ebe 100644 --- a/graphics/allocator/aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.aidl +++ b/graphics/allocator/aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.aidl
@@ -23,7 +23,14 @@ @VintfStability parcelable BufferDescriptorInfo { /** - * The name of the buffer in ASCII. Useful for debugging/tracing. + * The name of the buffer in null-terminated ASCII. Useful for debugging/tracing. + * + * NOTE: While a well behaved client will ensure it passes a null-terminated string + * within the 128-byte limit, the IAllocator service implementation should be + * be defensive against malformed input. As such, it is recommended that + * IAllocator implementations proactively do `name[127] = 0` upon receiving + * an allocation request to enusre that the string is definitely + * null-terminated regardless of what the client sent. */ byte[128] name;