mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1707642 - Increase message size limit in fuzzing builds. r=nika, a=RyanVM
If the limit is small, then the fuzzers hit crashes in various places when passing in large data structures to DOM APIs, so increase the limit. Differential Revision: https://phabricator.services.mozilla.com/D130890
This commit is contained in:
parent
9a4a2ff86b
commit
6842fb4693
@ -67,11 +67,18 @@ class Channel {
|
||||
enum Mode { MODE_SERVER, MODE_CLIENT };
|
||||
|
||||
enum {
|
||||
// The maximum message size in bytes. Attempting to receive a
|
||||
// message of this size or bigger results in a channel error.
|
||||
kMaximumMessageSize = 256 * 1024 * 1024,
|
||||
|
||||
// Ammount of data to read at once from the pipe.
|
||||
// The maximum message size in bytes. Attempting to receive a
|
||||
// message of this size or bigger results in a channel error.
|
||||
// This is larger in fuzzing builds to allow the fuzzing of passing
|
||||
// large data structures into DOM methods without crashing.
|
||||
#ifndef FUZZING
|
||||
kMaximumMessageSize = 256 * 1024 * 1024,
|
||||
#else
|
||||
kMaximumMessageSize = 1792 * 1024 * 1024, // 1.75GB
|
||||
#endif
|
||||
|
||||
// Amount of data to read at once from the pipe.
|
||||
kReadBufferSize = 4 * 1024,
|
||||
|
||||
// Maximum size of a message that we allow to be copied (rather than moved).
|
||||
|
Loading…
Reference in New Issue
Block a user