[cpp-sp COMMIT] /branches/REL_2/fastcgi/shibresponder.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Mon Oct 8 14:31:14 EDT 2012
Author: scantor
Date: Mon Oct 8 14:31:14 2012
New Revision: 3776
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3776&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-514
Modified:
branches/REL_2/fastcgi/shibresponder.cpp
Modified: branches/REL_2/fastcgi/shibresponder.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/fastcgi/shibresponder.cpp?rev=3776&r1=3775&r2=3776&view=diff
==============================================================================
--- branches/REL_2/fastcgi/shibresponder.cpp (original)
+++ branches/REL_2/fastcgi/shibresponder.cpp Mon Oct 8 14:31:14 2012
@@ -248,10 +248,11 @@
if (clen > STDIN_MAX)
clen = STDIN_MAX;
- *content = new char[clen];
+ *content = new char[clen + 1];
cin.read(*content, clen);
clen = cin.gcount();
+ (*content)[clen] = 0;
}
else {
// *never* read stdin when CONTENT_LENGTH is missing or unparsable
More information about the commits
mailing list