]> Sergey Matveev's repositories - public-inbox.git/commit
eml: enforce a maximum header length
authorEric Wong <e@yhbt.net>
Sun, 10 May 2020 06:21:04 +0000 (06:21 +0000)
committerEric Wong <e@yhbt.net>
Sun, 10 May 2020 06:56:42 +0000 (06:56 +0000)
commit1dde99e0badebfaf509cee4f15bbfa284996c8fc
tree34a8fb6e89397530abbabe1223f6990844af029a
parent8c3016372fb40ad3f19bc69c90e49cbd5a5f081f
eml: enforce a maximum header length

While our header processing is more efficient than
Email::*::Header, capping the maximum size for a `m//g' match
still limits memory growth on a header we care for.

Use the same limit as postfix (header_size_limit=102400), since
messages fetched via git/HTTP/NNTP/etc can bypass MTA limits.
lib/PublicInbox/Eml.pm
t/eml.t