From b878450725de85dc874f42bc9de4ce1d5087f900 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 1 Jun 2016 18:31:21 +0200 Subject: mk: remove buggy and unneeded syminit() function (thanks qurstuv) syminit() attemts to reset the symbol table by freeing all the hash table entries, tho the code is buggy having a obviously use after free bug. as syminit() is only called once in main when it does not contain any symbols, the bug never occured. removing the unneccesary code alltogether. --- sys/src/cmd/mk/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/src/cmd/mk/main.c') diff --git a/sys/src/cmd/mk/main.c b/sys/src/cmd/mk/main.c index 08bb3ab26..a81e83753 100644 --- a/sys/src/cmd/mk/main.c +++ b/sys/src/cmd/mk/main.c @@ -119,7 +119,6 @@ main(int argc, char **argv) if(aflag) iflag = 1; usage(); - syminit(); initenv(); usage(); -- cgit v1.2.3