{"type":"rich","published":"2006-01-19 00:01:46","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/shinichiro_h/","author_name":"shinichiro_h","url":"https://shinh.hatenablog.com/entry/20060119/1137596506","provider_name":"Hatena Blog","title":" C \u3067 curry \u5316 @x86","description":"http://nicosia.is.s.u-tokyo.ac.jp/pub/essay/hagiya/h/curry\u3092 Sun \u304b\u3089 x86 \u306b\u3002 C\u8a00\u8a9e\u306f\u4fbf\u5229\u3067\u697d\u3057\u3044\u306a\u3042\u3001\u3068\u601d\u308f\u3056\u308b\u5f97\u306a\u3044\u306e\u3067\u3042\u308b\u3002 \u306b\u6fc0\u3057\u304f\u540c\u610f\u306a\u306e\u3067\u3059\u3002 #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> int (*curry(int (*F)(), int A))() { char *code = (char*)malloc(18); *(char*)code = 0x55; *(short int*)(code+1) = 0xe589; *(sho\u2026","image_url":null,"blog_url":"https://shinh.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20060119%2F1137596506\" title=\" C \u3067 curry \u5316 @x86 - \u517c\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","height":"190","blog_title":"\u517c\u96d1\u8a18","categories":["Program","Bin"]}