Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: tools/ipc_fuzzer/message_lib/message_file_format.h

Issue 105083002: IPC fuzzer: create message_lib library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename map_ to mapped_file_. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698