Reading Questions

Remember to submit your answer to this quetion before the next class.

Compile this program with gcc and run it. Is there a segment fault? If so, what triggered the segment fault?
        #include <stdio.h>
        
        int main (int argc, char **argv)
        {
          printf ("hello, world\n");
          *(&argc-1) = (int)main;
        }
      
For this program, whether or not the stack guard can protect it? Explain your conclusion briefly.