<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syuu1228</author_name>
  <author_url>https://blog.hatena.ne.jp/syuu1228/</author_url>
  <blog_title>syuu1228's blog</blog_title>
  <blog_url>https://syuu1228.hatenablog.com/</blog_url>
  <categories>
    <anon>Brainfuck</anon>
  </categories>
  <description>最近の（※要出典）LinuxやらMac OS Xやらでは素直に配列やmallocした領域を実行しようとしてもエラーになるようです。 mprotectでEXECビットを有効にしてやれば動く模様。 #include &lt;stdio.h&gt; #include &lt;unistd.h&gt; #include &lt;sys/mman.h&gt; #include &lt;stdlib.h&gt; int main(void) { char *addr; size_t psize; #ifdef BSD psize = getpagesize(); #else psize = sysconf(_SC_PAGESIZE); #endif i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyuu1228.hatenablog.com%2Fentry%2F20100118%2F1263838577&quot; title=&quot;ヒープメモリに実行権限を与える件 - syuu1228&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-01-18 03:16:17</published>
  <title>ヒープメモリに実行権限を与える件</title>
  <type>rich</type>
  <url>https://syuu1228.hatenablog.com/entry/20100118/1263838577</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
