Skip to content

Commit d56f7d8

Browse files
committed
Work in progress
1 parent f67853f commit d56f7d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/common/commonutils/CrashHandler.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ static char* LoadEndOfFile(const char* logFileName, OsConfigLogHandle log)
9090
const int maxSize = 2048;
9191
int size = 0;
9292
long offset = 0;
93+
size_t sizeRead = 0;
9394
FILE* file = NULL;
9495
char* string = NULL;
9596

@@ -116,7 +117,7 @@ static char* LoadEndOfFile(const char* logFileName, OsConfigLogHandle log)
116117
if (NULL != (string = (char*)malloc(size + 1)))
117118
{
118119
memset(string, 0, size + 1);
119-
fread(string, sizeof(char), size, file);
120+
sizeRead = fread(string, sizeof(char), size, file);
120121
}
121122
else
122123
{

src/common/commonutils/UserUtils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ int EnumerateUsers(SimplifiedUser** userList, unsigned int* size, char** reason,
444444
}
445445

446446
// Cause a genuine SIGSEGV via NULL dereference exercises the full signal delivery and handler path
447-
OsConfigLogInfo(log, "Forcing a crash within EnumerateUsers");
447+
/*OsConfigLogInfo(log, "Forcing a crash within EnumerateUsers");
448448
volatile int* null_ptr = NULL;
449-
*null_ptr = 0;
449+
*null_ptr = 0;*/
450450

451451
return status;
452452
}

0 commit comments

Comments
 (0)