Browse Source

add const unsigned MaxMultipartNestingLevel = 100;

MIME-10
Roker 2 years ago
parent
commit
68f850b347
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/pEpMIME.hh

+ 8
- 0
src/pEpMIME.hh View File

@ -17,6 +17,14 @@
namespace pEpMIME
{
// multipart messages are parsed recursively up to a maximum nesting level.
// It should be large enough that all real-world mails can be parsed, but no
// stack overflow occurs on maliciously crafted messages.
// Deeper nested multipart messages are just put as attachment.
// 100 seems to be a good default value, I think.
const unsigned MaxMultipartNestingLevel = 100;
// Parse the given string loosely as an "Internet Message" that aims to be RFC 5322
// and MIME compliant (RFC 2046 etc.)
//


Loading…
Cancel
Save