don't assume POST data is NUL-terminated
commitaf6d3e25681bcc60400e4b9ea3f44af99076ea73
authorChristopher Dykes <cdykes@fb.com>
Tue, 28 Feb 2017 16:41:11 +0000 (28 08:41 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 28 Feb 2017 23:03:14 +0000 (28 15:03 -0800)
tree9ca4d331c2018f8ec38a62a2dcdeae3d095fd66a
parentbbc58cf29b285c9b9522003cb83c43411247f011
don't assume POST data is NUL-terminated

Summary: Use actual POST data size when parsing it, rather than assuming it's always NUL-terminated. Verify in DEBUG mode that there are no embedded NULs.

Reviewed By: markw65

Differential Revision: D4537912

fbshipit-source-id: 0ede9788d75ab290521d311a3ad5501bc95b5337
hphp/runtime/server/transport.cpp