<p>Buffer Overflow</p><p>In which memory segments are the variables in the following codelocated?</p><p style="margin-left:10.75pt;">int i = 0;</p><p style="margin-left:10.75pt;">void func(char *str)</p><p style="margin-left:10.75pt;">{</p><p style="margin-left:26.85pt;">char *ptr = malloc(sizeof(int));char buf[1024];</p><p style="margin-left:26.85pt;">int j;</p><p style="margin-left:10.75pt;">}</p> Expert