~georgeunix-5/lwan-unofficial/master

Viewing all changes in revision 2304.

  • Committer: Leandro Pereira
  • Date: 2019-04-17 04:54:04 UTC
  • Revision ID: git-v1:7e08e1f1fd8d220f16d347e5c351ddeb56ef5524
Do not advance pointer past end of buffer when parsing header

Define an HEADER_LENGTH() macro that returns the string length of a
string literal/header name, only if it's within the request buffer
bounds.

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14232

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: