trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

libopenarc: Check length of header field name tightly. #179

Open futatuki opened 2 months ago

futatuki commented 2 months ago

From the restriction of RFC5322 section 2.1.1 and section 2.2, length of email header field name cannot be more than 997.

With this PR, we define a constant macro for it, and then apply this restriction on parsing header field. Also, reduce size of a buffer for copying header field name.

This PR contains PR #117.