| Index: mojo/public/cpp/bindings/lib/bindings_serialization.h
|
| diff --git a/mojo/public/cpp/bindings/lib/bindings_serialization.h b/mojo/public/cpp/bindings/lib/bindings_serialization.h
|
| index 9cd2f1380ad50eb5566619809545dbd300522f39..6bebf90bf950d3a5ce254ea31bddbab88faf64a8 100644
|
| --- a/mojo/public/cpp/bindings/lib/bindings_serialization.h
|
| +++ b/mojo/public/cpp/bindings/lib/bindings_serialization.h
|
| @@ -71,6 +71,7 @@ inline void Decode(T* obj, std::vector<Handle>* handles) {
|
|
|
| // If returns true, this function also claims the memory range of the size
|
| // specified in the struct header, starting from |data|.
|
| +// Note: |min_num_bytes| must be no less than sizeof(StructHeader).
|
| bool ValidateStructHeader(const void* data,
|
| uint32_t min_num_bytes,
|
| uint32_t min_num_fields,
|
|
|