Add NCP::max_frame_size tuning option

This helps prevent excessive allocations based on message lengths
taken from NCP headers.
This commit is contained in:
Jon Siwek 2018-05-22 18:27:52 -05:00
parent 2ee6de836c
commit 41f7ab3569
7 changed files with 487 additions and 15 deletions

View file

@ -4396,6 +4396,12 @@ export {
const max_frag_data = 30000 &redef;
}
module NCP;
export {
## The maximum number of bytes to allocate when parsing NCP frames.
const max_frame_size = 65536 &redef;
}
module GLOBAL;
## Seed for hashes computed internally for probabilistic data structures. Using