~georgeunix-5/lwan-unofficial/master

Viewing all changes in revision 2222.

  • Committer: Leandro Pereira
  • Date: 2018-12-02 10:36:19 UTC
  • Revision ID: git-v1:b5d438fb90d2a8b3f18d7593d4783b1ac4a9129d
Consider integer overflow when building string in rewrite module

Although user input is passed to append_str(), it's never going to be
larger than the whole HTTP request, and that must fit within the stack
of a coroutine, so the possibility of overflowing a 64-bit size_t are
practically impossible.

While not technically necessary in this case, it's cheap to check for
overflow, so do it even if for clarity alone.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: