Skip to content

Commit

Permalink
Explicit memory initialization when reading status file
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed Apr 17, 2024
1 parent 6f0adfa commit 51ead9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/LinuxProcessTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static bool LinuxProcessTable_readStatusFile(Process* process, openat_arg_t proc
if (!statusfile)
return false;

char buffer[PROC_LINE_LENGTH + 1];
char buffer[PROC_LINE_LENGTH + 1] = {0};

while (fgets(buffer, sizeof(buffer), statusfile)) {

Expand Down

0 comments on commit 51ead9d

Please sign in to comment.