| Index: mojo/edk/system/ports/message.h
|
| diff --git a/mojo/edk/system/ports/message.h b/mojo/edk/system/ports/message.h
|
| index df3b8f2ddbf962e96ff91a890eac4b7993fef1b7..926ce752a844669aa2430a5875e37417fac11690 100644
|
| --- a/mojo/edk/system/ports/message.h
|
| +++ b/mojo/edk/system/ports/message.h
|
| @@ -26,8 +26,9 @@ class Message {
|
| public:
|
| virtual ~Message() {}
|
|
|
| - // Inspect the message at |bytes| and return the size of each section.
|
| - static void Parse(const void* bytes,
|
| + // Inspect the message at |bytes| and return the size of each section. Returns
|
| + // |false| if the message is malformed and |true| otherwise.
|
| + static bool Parse(const void* bytes,
|
| size_t num_bytes,
|
| size_t* num_header_bytes,
|
| size_t* num_payload_bytes,
|
|
|