Commit 8fcc785
preproc: fix memory leak (and possibly CVEs?)
case PP_ENDM:
case PP_ENDMACRO:
if (!(defining && defining->name)) {
nasm_nonfatal("`%s': not defining a macro", tok_text(tline));
goto done;
}
mmhead = (MMacro **) hash_findi_add(&mmacros, defining->name);
defining->next = *mmhead;
*mmhead = defining;
defining = NULL;
break;
The variable: mmacros has not been released, which will cause a memory
leak. Repair cve-2021-33450 cve-2021-33452 synchronously
Signed-off-by: H. Peter Anvin <hpa@zytor.com>1 parent 0582a32 commit 8fcc785
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4861 | 4861 | | |
4862 | 4862 | | |
4863 | 4863 | | |
| 4864 | + | |
4864 | 4865 | | |
4865 | 4866 | | |
4866 | 4867 | | |
| |||
0 commit comments