[nasm:master] Revert "preproc: fix memory leak (and possibly CVEs?)"

nasm-bot for H. Peter Anvin hpa at zytor.com
Mon Nov 7 17:12:40 PST 2022


Commit-ID:  1a5fcb070a21b04490146c94478cb5b0ed8c7cc0
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=1a5fcb070a21b04490146c94478cb5b0ed8c7cc0
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 7 Nov 2022 13:08:30 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 7 Nov 2022 13:08:30 -0800

Revert "preproc: fix memory leak (and possibly CVEs?)"

This reverts commit 8fcc785f95b842694015e03d909a3131cbadbeb3.

This patch causes test a32offs.asm, and in general *any* use of the
"bits" macro, to totally fail.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 asm/preproc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/asm/preproc.c b/asm/preproc.c
index e90c472a..058c0325 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -4858,7 +4858,6 @@ issue_error:
     }
 
 done:
-    free_mmacro_table(&mmacros);
     free_tlist(origline);
     return DIRECTIVE_FOUND;
 }


More information about the Nasm-commits mailing list