{"description":"gcc\u3067\u3001\u914d\u5217\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308b\u4eba\u3092\u63a2\u3057\u3066\u3076\u3063\u6bba\u3057\u305f\u3044\u3002 \u305d\u306e\u305f\u3081\u306b\u306fgcc\u306e ASAN\uff08Address Sanitizer\uff09\u6a5f\u80fd\u3092\u4f7f\u3046 -fsanitize=address \u30bd\u30fc\u30b9 \u30b3\u30f3\u30d1\u30a4\u30eb \u5b9f\u884c\u7d50\u679c -fsanitize=bounds \u30b3\u30f3\u30d1\u30a4\u30eb \u5b9f\u884c\u7d50\u679c \u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u8a2d\u5b9a \u5b9f\u884c\u7d50\u679c \u51e6\u7406\u80fd\u529b \u53c2\u8003 -fsanitize=address \u30bd\u30fc\u30b9 #include <stdio.h> int main() { char buf[15]; printf(\"MAIN\\n\"); for(int i=0; i<16; i++){ printf(\"%08X:buf[%d]\\n\", &buf\u2026","author_name":"iww","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://iww.hateblo.jp/","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","type":"rich","version":"1.0","height":"190","categories":["C","Linux"],"image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1685946694840016","published":"2024-03-19 08:30:00","title":" gcc\u3067\u3001\u914d\u5217\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308b\u4eba\u3092\u63a2\u3057\u3066\u3076\u3063\u6bba\u3057\u305f\u3044","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20240319%2FAddressSanitizer\" title=\" gcc\u3067\u3001\u914d\u5217\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308b\u4eba\u3092\u63a2\u3057\u3066\u3076\u3063\u6bba\u3057\u305f\u3044 - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/iww/","url":"https://iww.hateblo.jp/entry/20240319/AddressSanitizer"}