| Index: mojo/edk/system/ports/message.h
|
| diff --git a/mojo/edk/system/ports/message.h b/mojo/edk/system/ports/message.h
|
| index 60bdd70f21d27255861e51b0c2d2fd6e799fc32d..95fa04676ce0e670025a74036e6f24fed4683ad1 100644
|
| --- a/mojo/edk/system/ports/message.h
|
| +++ b/mojo/edk/system/ports/message.h
|
| @@ -27,8 +27,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,
|
|
|