{"width":"100%","height":"190","version":"1.0","image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u30d0\u30a4\u30ca\u30ea\u306e\u6b69\u304d\u65b9","published":"2013-09-02 00:36:29","author_name":"b07c00","type":"rich","categories":[],"author_url":"https://blog.hatena.ne.jp/b07c00/","blog_url":"https://07c00.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2F07c00.hatenablog.com%2Fentry%2F2013%2F09%2F02%2F003629\" title=\"LD_PRELOAD\u3067\u95a2\u6570\u30d5\u30c3\u30af\u3057\u3066\u307f\u3088\u3046\uff01 - \u30d0\u30a4\u30ca\u30ea\u306e\u6b69\u304d\u65b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"LD_PRELOAD\u3067\u95a2\u6570\u30d5\u30c3\u30af\u3057\u3066\u307f\u3088\u3046\uff01","provider_name":"Hatena Blog","url":"https://07c00.hatenablog.com/entry/2013/09/02/003629","description":"\u300c\u305f\u306e\u3057\u3044\u30d0\u30a4\u30ca\u30ea\u306e\u6b69\u304d\u65b9\u300d\u306e4\u7ae0\u3067Windows\u74b0\u5883\u306b\u304a\u3051\u308bAPI\u30d5\u30c3\u30af\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306fLinux\u74b0\u5883\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u307e\u3057\u3087\u3046\u3002 Linux\u74b0\u5883\uff08Ubuntu 12.04.2\uff09\u3067\u306fLD_PRELOAD\u3068\u3044\u3046\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3046\u3053\u3068\u3067\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002LD_PRELOAD\u3067\u30b0\u30b0\u3063\u3066\u307f\u308b\u3068\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u3044\u304f\u3064\u3082\u898b\u3064\u304b\u308a\u307e\u3059\u3002 \u8a66\u3057\u306bwrite\u3092\u30d5\u30c3\u30af\u3059\u308b\u4f8b\u3092\u793a\u3057\u307e\u3057\u3087\u3046\u3002 // test.c // $ gcc test -o test.c #include <string.h> #include <unistd.h> int main() { char s[] = \"Hello \u2026"}