<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Bug in asn.c GetCertHeader()]]></title>
		<link>https://www.wolfssl.com/forums/topic95-bug-in-asnc-getcertheader.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic95.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Bug in asn.c GetCertHeader().]]></description>
		<lastBuildDate>Thu, 07 Apr 2011 15:57:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Bug in asn.c GetCertHeader()]]></title>
			<link>https://www.wolfssl.com/forums/post207.html#p207</link>
			<description><![CDATA[<p>Thanks for the patch!&nbsp; It&#039;s been pushed to our embedded SSL library on github.</p>]]></description>
			<author><![CDATA[null@example.com (todd)]]></author>
			<pubDate>Thu, 07 Apr 2011 15:57:40 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post207.html#p207</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in asn.c GetCertHeader()]]></title>
			<link>https://www.wolfssl.com/forums/post206.html#p206</link>
			<description><![CDATA[<p>A unified diff of the patch I applied. </p><p>/cyassl-1.9.0/ctaocrypt/src/asn.c |&nbsp; &nbsp; 2 +-<br /> 1 files changed, 1 insertions(+), 1 deletions(-)</p><p>diff --git a/cyassl-1.9.0/ctaocrypt/src/asn.c b/cyassl-1.9.0/ctaocrypt/src/asn.c<br />index 844ab71..2ec8eec 100644<br />--- a/cyassl-1.9.0/ctaocrypt/src/asn.c<br />+++ b/cyassl-1.9.0/ctaocrypt/src/asn.c<br />@@ -716,7 +716,7 @@ static int GetCertHeader(DecodedCert* cert, word32 inSz)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return ASN_PARSE_E;</p><p>&nbsp; &nbsp; &nbsp;if (GetInt(&amp;mpi, cert-&gt;source, &amp;cert-&gt;srcIdx) &lt; 0) <br />-&nbsp; &nbsp; &nbsp; &nbsp; ret = ASN_PARSE_E;<br />+&nbsp; &nbsp; &nbsp; &nbsp; return ASN_PARSE_E;</p><p>&nbsp; &nbsp; &nbsp;mp_clear(&amp;mpi);<br />&nbsp; &nbsp; &nbsp;return ret;</p>]]></description>
			<author><![CDATA[null@example.com (eof)]]></author>
			<pubDate>Thu, 07 Apr 2011 14:07:34 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post206.html#p206</guid>
		</item>
		<item>
			<title><![CDATA[Bug in asn.c GetCertHeader()]]></title>
			<link>https://www.wolfssl.com/forums/post205.html#p205</link>
			<description><![CDATA[<p>In GetCertHeader(..) this variable is declared: </p><p>mp_int mpi;</p><p>and then hopefully initialized later on in GetInt(...)</p><p>however if GetInt fails then, instead of returning <br />ret is set to ASN_PARSE_E</p><p>it looks like this ret value is then ignored later on <br />so I assume the intention was to write</p><p>return ASN_PARSE_E; <br />instead of <br />ret = ASN_PARSE_E;</p><p>Since mp_int is not nulled or anything, attempting <br />to free it in mp_init will causes a crash.</p><p>Eoin.</p>]]></description>
			<author><![CDATA[null@example.com (eof)]]></author>
			<pubDate>Thu, 07 Apr 2011 11:41:59 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post205.html#p205</guid>
		</item>
	</channel>
</rss>
