配列境界チェックしてほしいんですけど
-bで境界チェック
$ cat alloc.c #include <stdio.h> #include <stdlib.h> int main() { int i; char ptr[30]; ptr[30] = 0; return 0; } $ tcc -b alloc.c $ ./a.out ???(最近SEGVのメッセージが化ける…)
-bで境界チェック
$ cat alloc.c #include <stdio.h> #include <stdlib.h> int main() { int i; char ptr[30]; ptr[30] = 0; return 0; } $ tcc -b alloc.c $ ./a.out ???(最近SEGVのメッセージが化ける…)