<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>きぬろぐ &#187; C</title>
	<atom:link href="http://www.kinusati.net/category/computer/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kinusati.net</link>
	<description>だめでつれづれな日記</description>
	<lastBuildDate>Sun, 15 Jan 2012 23:42:13 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/category/computer/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/c/feed/" />
		<item>
		<title>talloc</title>
		<link>http://www.kinusati.net/2010/06/24/talloc/</link>
		<comments>http://www.kinusati.net/2010/06/24/talloc/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 04:30:28 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=691</guid>
		<description><![CDATA[C言語の勉強に最近いそしんでいますが、メモリ管理ライブラリにtallocなるものが存在することを見つけました。 CodeZineでSamba smbclient―書式指定文字列に潜む脆弱性 という記事があり、それに載って &#8230; <a href="http://www.kinusati.net/2010/06/24/talloc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>C言語の勉強に最近いそしんでいますが、メモリ管理ライブラリに<a href="http://talloc.samba.org/talloc/doc/html/index.html">talloc</a>なるものが存在することを見つけました。</p>
<p>CodeZineで<a href="http://codezine.jp/article/detail/5229">Samba  smbclient―書式指定文字列に潜む脆弱性 </a>という記事があり、それに載っていました。以下、CodeZine記事に記載されていた内容です。</p>
<pre>
「talloc」という文字列を含む関数がいくつか出てきますが、これはSambaで使われている動的メモリ管理ライブラリtallocのなかの関数で す。Sambaではパス名やサービス名などの文字列の操作が頻繁に行われますが、それらを動的メモリ領域に置いて管理しています。malloc()や free()などのC標準ライブラリ関数を直接使うとメモリ管理が繁雑になるため、不要になったメモリ領域をある程度自動的に解放できる仕組みを tallocライブラリ（trivial  alloc）として実装して使っているのです。今ではこのtallocライブラリはSambaとは独立に公開されていますので、興味のある方はどのように 実装されているか調べてみてください。
</pre>
</pre>
<p>これを使うとメモリリークとかから多少解放されるのでしょうか。興味があります。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2010/06/24/talloc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2010/06/24/talloc/" />
	</item>
		<item>
		<title>C/C++でのセキュアコーディング</title>
		<link>http://www.kinusati.net/2010/06/20/cc%e3%81%a7%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/</link>
		<comments>http://www.kinusati.net/2010/06/20/cc%e3%81%a7%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 01:43:06 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=658</guid>
		<description><![CDATA[JPCERTのページにC/C++のセキュアコーディングについて情報がまとめられています。 https://www.jpcert.or.jp/securecoding.html https://www.jpcert.or. &#8230; <a href="http://www.kinusati.net/2010/06/20/cc%e3%81%a7%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JPCERTのページにC/C++のセキュアコーディングについて情報がまとめられています。</p>
<ul>
<li><a href="https://www.jpcert.or.jp/securecoding.html">https://www.jpcert.or.jp/securecoding.html</a></li>
<li><a href="https://www.jpcert.or.jp/sc-rules/">https://www.jpcert.or.jp/sc-rules/</a></li>
</ul>
<p>しっかり書いていますね。勉強になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2010/06/20/cc%e3%81%a7%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2010/06/20/cc%e3%81%a7%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/" />
	</item>
	</channel>
</rss>

