Answers for "stack smashing detected"

1

stack smashing detected

It was a bufferoverflow for me
Posted by: Guest on October-01-2021
1

stack smashing detected

#include <stdio.h>

void func()
{
    char array[10];
    gets(array);
}

int main(int argc, char **argv)
{
    func();
}
Posted by: Guest on July-17-2021
-1

stack smashing detected

#include <stdio.h>

int main()
{
    char s[5]="hello";
    char *a=s;
    *(a+5)='1';
    printf("%s",s);
    return 0;
}
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language