nasm/asm
Yongjie2017 b5235c49f0 asm/preproc.c: fix https://nvd.nist.gov/vuln/detail/CVE-2025-8842
When there is an ill formed assembly (e.g. a macro without a correct
ending), the assembly processing will end with a defining->refcnt
in non-zero value that further causes a nasm_assert in free_mmacro,
the nasm_assert causes a panic.

Force the defining->refcnt to zero in pp_clean_pass as a bailout.

Signed-off-by: Yongjie Sheng (Intel) <sheng.yongjie@outlook.com>
2026-04-17 06:35:57 +08:00
..
asmutil.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
assemble.c assemble: for -LX emit specific template number as well 2026-03-04 14:12:55 -08:00
assemble.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
directiv.c fix [warning push] causing "unknown warning name" 2025-11-04 10:23:54 -08:00
directiv.dat directives: correctly handle quoted strings in directives 2025-10-10 10:41:09 -07:00
error.c error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00
eval.c fix memory leak in eval_strfunc 2025-10-06 14:50:40 -07:00
eval.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
exprdump.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
exprlib.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
floats.c Warnings: disaggregate from source and tidy up documentation 2025-10-04 13:46:39 -07:00
floats.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
getbool.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
labels.c labels: make the prefix/suffix options and pragmas consistent 2025-10-07 18:46:39 -07:00
listing.c listing: move LIST_* enums to listing.h 2026-03-04 14:14:02 -08:00
listing.h listing: move LIST_* enums to listing.h 2026-03-04 14:14:02 -08:00
nasm.c limits: allow querying limits, and reset limits for each pass 2026-04-09 17:00:49 -07:00
parser.c parser.c: Fix issue #181 - redundancy needed to avoid NEAR optimized out 2026-02-04 17:18:44 +01:00
parser.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pptok.dat treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pptok.pl treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pragma.c labels: make the prefix/suffix options and pragmas consistent 2025-10-07 18:46:39 -07:00
preproc.c asm/preproc.c: fix https://nvd.nist.gov/vuln/detail/CVE-2025-8842 2026-04-17 06:35:57 +08:00
preproc.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
quote.c Add \^ escape sequences for Ctrl characters 2026-04-09 18:08:21 -07:00
quote.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
rdstrnum.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
segalloc.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
srcfile.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
srcfile.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
stdscan.c Warnings: disaggregate from source and tidy up documentation 2025-10-04 13:46:39 -07:00
stdscan.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
strfunc.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
tokens.dat treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
tokhash.pl treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
uncompress.c zlib: pass 15 not 0 to inflateInit2() 2025-11-04 00:38:17 -08:00
warnings.c Make: handle warning files while building in a directory 2023-01-17 13:05:55 -08:00
warnings.dat warnings.dat: fix a missing "is" 2026-04-08 02:21:20 -07:00
warnings.pl error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00