warning: iteration 1024 invokes undefined behavior 警告:ループカウンタ 1024 で未定義動作[-Waggressive-loop-optimizations] ■&l… 続きを読む 【C言語】
バッファオーバーフロー
バッファオーバーラン
タグ: メモリ破壊
【C言語】
【C言語】
malloc(strlen(src))
終端文字’¥0’の1byte足りない
warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ 警告:strlen()で確保した… 続きを読む 【C言語】
malloc(strlen(src))
終端文字’¥0’の1byte足りない
【C言語】
オーバーフローと
オーバーランの違い
(overFlow VS overRun)
warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘305419896’ to ‘120’ 警告: ‘… 続きを読む 【C言語】
オーバーフローと
オーバーランの違い
(overFlow VS overRun)
【C言語】
配列領域外参照
配列の添字チェックを先に!
(style) Array index ‘idx’ is used before limits check. 警告:配列添字を範囲チェック前に使った[(style)arrayIndexThenCh… 続きを読む 【C言語】
配列領域外参照
配列の添字チェックを先に!