You are the IT professional who work in an International company named Wiikigo. You are experienced in troubleshooting operating systems and applications that are not working correctly, identifying code defects and so on. You have enough knowledge on windows internals and you provide technical support for the company. You are in charge of an application named MyApp. This application fails sometimes and displays the following exception code: 0xC0000005 According to the indication of the call stack, MyApp fails in different locations including ntdll.dll and MyApp.exe. The functions main and doRealWork are always included in the stack trace always. You review the source code for MyApp.exe and find the following code snippet:
#include <string.h>
#include <stdio.h>
extern void doRealWork(char *);
char * myfunc(char *);
void main(int argc,char *argv[])
{
char * szLocalBuffer;
szLocalBuffer = myfunc(“Data Pay load”);
if (!szLocalBuffer)
{
printf(“a failure has occured\r\n”);
}
else
{
doRealWork(szLocalBuffer);
}
}
char * myfunc(char *szData)
{
char *szBuffer;
szBuffer=(char*)malloc(10);
if(szBuffer)
{
sprintf(szBuffer,”The data passed to this function was %s”,szData);
return szBuffer;
}
else
{
return NULL;
}
}
In the above code, you resolve the error. You find that MyApp.exe continues to fail with the same call stacks. You have to find out what is causing the application to fail. So what action should you perform?
A.
Gflags.exe should be run and the Enable page heap option should be enabled.
B.
Gflags.exe should be run and the Enable heap tagging by DLL option should be enabled.
C.
Verifier.exe should be run and the Special pool option should be enabled.
D.
Verifier.exe should be run and the Pool tracking option should be enabled.
{Nike Patriots – Professional {Nike Patriots Outlet Sale, cheap youth nfl jerseys
china From China Store for NFL Fans. Buy Discount NFL Football Jerseys, Hockey jerseys here.
Every weekend i used to visit this website, because i wish
for enjoyment, for the reason that this this website conations in fact pleasant funny material too.