<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with sprintf</title>
      <link>http://ask.metafilter.com/tags/sprintf</link>
      <description>Questions tagged with 'sprintf' at Ask MetaFilter.</description>
	  <pubDate>Sat, 09 Jun 2007 06:05:30 -0800</pubDate> <lastBuildDate>Sat, 09 Jun 2007 06:05:30 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>How can I avoid buffer overflows with C?</title>
	<link>http://ask.metafilter.com/64414/How%2Dcan%2DI%2Davoid%2Dbuffer%2Doverflows%2Dwith%2DC</link>	
	<description>Robust usage of sscanf and sprintf - how to avoid buffer overflows? I am sure this is embarrassingly simple, but all the tutorials I read always gloss over this aspect of sscanf and sprintf. How do I go about ensuring I don&apos;t encounter buffer overflows when using these two functions? I&apos;ve read links like &lt;a href=&quot;http://www.itworld.com/nl/lnx_sec/12182001/&quot;&gt;these&lt;/a&gt; that suggest truncating the data, but I don&apos;t want to do this. &lt;a href=&quot;http://www.crasseux.com/books/ctutorial/String-overflows-with-scanf.html&quot;&gt;This&lt;/a&gt; link suggests using the &quot;a&quot; flag, but also says it&apos;s a GNU-only addition.  &lt;br&gt;
&lt;br&gt;
How do programmes that don&apos;t have fixed-length strings operate? Surely our chat clients don&apos;t use fixed-length buffers? Help, Mefi!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.64414</guid>
	<pubDate>Sat, 09 Jun 2007 06:05:30 -0800</pubDate>
	<category>buffer</category>
	<category>c</category>
	<category>overflow</category>
	<category>programming</category>
	<category>sprintf</category>
	<category>sscanf</category>
	<dc:creator>PuGZ</dc:creator>
	</item>
	
	</channel>
</rss>

