<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Introduction to C++ CGI &#8211; Processing Forms</title>
	<atom:link href="http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:33:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Luiz Carlos</title>
		<link>http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/comment-page-1/#comment-61832</link>
		<dc:creator>Luiz Carlos</dc:creator>
		<pubDate>Sat, 05 Feb 2011 20:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/#comment-61832</guid>
		<description>Good afternoon,

When I compile a cpp compiler using getpost.h cpp55, an error occurs.
Should not I use the same for the post.
You know how to help me

att,
Luiz Carlos

User Brasilian</description>
		<content:encoded><![CDATA[<p>Good afternoon,</p>
<p>When I compile a cpp compiler using getpost.h cpp55, an error occurs.<br />
Should not I use the same for the post.<br />
You know how to help me</p>
<p>att,<br />
Luiz Carlos</p>
<p>User Brasilian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/comment-page-1/#comment-23503</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Fri, 18 Sep 2009 11:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/#comment-23503</guid>
		<description>Thomas Gauss contacted me (thanks!) and pointed a bug in getpost.h. The bug causes an access to a unallocated memory. The patch bellow fixes it (it basically changes line 113).

Looking back at the code, I want to point two things:
1. It doesn&#039;t handle nulls well (if the post data wasn&#039;t encoded correctly it may chop data off)
2. This isn&#039;t production ready code, it is meant to demonstrate the processing process.
&lt;pre&gt;
--- getpost.h   2009-09-18 14:31:35.000000000 +0300
+++ getpost-new.h       2009-09-18 14:38:19.000000000 +0300
@@ -110,7 +110,7 @@
        }

        try {
-               buffer = new char[content_length*sizeof(char)];
+               buffer = new char[content_length+1];
        } catch (std::bad_alloc xa) {
                Post.clear();
                return;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thomas Gauss contacted me (thanks!) and pointed a bug in getpost.h. The bug causes an access to a unallocated memory. The patch bellow fixes it (it basically changes line 113).</p>
<p>Looking back at the code, I want to point two things:<br />
1. It doesn&#8217;t handle nulls well (if the post data wasn&#8217;t encoded correctly it may chop data off)<br />
2. This isn&#8217;t production ready code, it is meant to demonstrate the processing process.</p>
<pre>
--- getpost.h   2009-09-18 14:31:35.000000000 +0300
+++ getpost-new.h       2009-09-18 14:38:19.000000000 +0300
@@ -110,7 +110,7 @@
        }

        try {
-               buffer = new char[content_length*sizeof(char)];
+               buffer = new char[content_length+1];
        } catch (std::bad_alloc xa) {
                Post.clear();
                return;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viet</title>
		<link>http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/comment-page-1/#comment-2331</link>
		<dc:creator>Viet</dc:creator>
		<pubDate>Sat, 22 Mar 2008 05:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/#comment-2331</guid>
		<description>Hi,

Thank you for nice tutorial. I like using C/C++ for CGI programming for their simplicity &amp; lightweight execution. Wondering how to process multiple file upload with multiple input at the same time via their names and with upload progress. If you have any idea, please enlighten me. Thank you.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for nice tutorial. I like using C/C++ for CGI programming for their simplicity &amp; lightweight execution. Wondering how to process multiple file upload with multiple input at the same time via their names and with upload progress. If you have any idea, please enlighten me. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miroslav Mollov</title>
		<link>http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/comment-page-1/#comment-1871</link>
		<dc:creator>Miroslav Mollov</dc:creator>
		<pubDate>Tue, 04 Mar 2008 12:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/07/introduction-to-c-cgi-processing-forms/#comment-1871</guid>
		<description>I soon will be try this code !</description>
		<content:encoded><![CDATA[<p>I soon will be try this code !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.242 seconds -->

