Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_ | |
| 6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
|
Tom Sepez
2013/12/06 18:57:16
You'll want a comment here describing the format o
aedla
2013/12/09 18:08:32
Done.
| |
| 10 namespace ipc_fuzzer { | |
| 11 | |
| 12 struct FileHeader { | |
| 13 uint32 message_count; | |
|
Tom Sepez
2013/12/06 18:57:16
I'd suggests having a magic number here just to be
aedla
2013/12/09 18:08:32
Added magic and version.
| |
| 14 uint32 name_count; | |
| 15 }; | |
|
Tom Sepez
2013/12/06 18:57:16
Hard to detect corruption if the counts are wrong
aedla
2013/12/09 18:08:32
I think it's unlikely that the magic is correct an
| |
| 16 | |
| 17 struct NameTableEntry { | |
| 18 uint32 type; | |
| 19 uint32 string_table_offset; | |
| 20 }; | |
| 21 | |
| 22 } // namespace ipc_fuzzer | |
| 23 | |
| 24 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_ | |
| OLD | NEW |