treewide: improve maintaince

General revisions to maintain code (no functional changes intended).
Removed unnecessary linked-list length checks.
Fixed some typos on function names / comments.
Changed how test_storage forces SEGV due to new compiler warnings.

Signed-off-by: Ian Clowes <clowes_ian@hotmail.com>
This commit is contained in:
Ian Clowes 2022-01-06 09:13:21 +01:00 committed by Nick Hainke
parent 6bf9b6df9a
commit 9187665f8e
8 changed files with 50 additions and 69 deletions

View file

@ -429,7 +429,17 @@ static int consume_actions(int argc, char* argv[], int harness_verbosity)
args_required = 1;
char* leaky = dawn_malloc(10);
strcpy(leaky, "LEAKED"); // Force use of memory to avoid unused error
strcpy(leaky, "TRACKED"); // Force use of memory to avoid unused error
leaky = malloc(10);
strcpy(leaky, "UNTRACKED"); // Force use of memory to avoid unused error
}
else if (strcmp(*argv, "segv") == 0)
{
args_required = 1;
char *badpointer = 0;
*badpointer = 0;
}
else if (strcmp(*argv, "memaudit") == 0)
{