]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
util.c: ensure all TEST_CHAR loops stop at the null terminator
authorJacob Champion <jchampion@apache.org>
Tue, 20 Jun 2017 23:08:19 +0000 (23:08 +0000)
committerJacob Champion <jchampion@apache.org>
Tue, 20 Jun 2017 23:08:19 +0000 (23:08 +0000)
commit2a99e0920b29cd6baa36dd12c8c24193c0e76f75
treeb6c10fd1d42c5f94bf5aa9083e4ce3aeb0131c7a
parent734d6332aad0f0fcaa0237a67991daeda7b6f609
util.c: ensure all TEST_CHAR loops stop at the null terminator

In the aftermath of CVE-2017-7668, decouple the business logic ("is NULL
a T_HTTP_CTRL") from the postcondition ("must not go past the end of the
string"). The NULL-byte classification in the TEST_CHAR table may change
in the future.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1799375 13f79535-47bb-0310-9956-ffa450edef68
server/util.c