No out of bounds error

后端 未结 7 676
既然无缘
既然无缘 2020-11-22 01:01

I have this code in C which takes in bunch of chars

#include 
# define NEWLINE \'\\n\'
int main()
{

char c;
char str[6];
int i =         


        
7条回答
  •  抹茶落季
    2020-11-22 01:19

    You have to compile like this:

    gcc -fsanitize=address -ggdb -o test test.c
    

    There is more information here.

提交回复
热议问题