From 762e2fe5976d584a1d1e5cc2421cdcf904d1d7c4 Mon Sep 17 00:00:00 2001 From: Artem Chernyshev Date: Mon, 5 Aug 2024 10:20:56 +0300 Subject: [PATCH] debug: Add missing elements to types array Bug 3392814 (Global-buffer-overflow output/outdbg.c in dbgdbg_typevalue) is caused by the array types[] are missing elements that correspond to the TY_OWORD, TY_YWORD and TY_ZWORD definitions in /include/nasm.h Signed-off-by: Oleg Sviridov Signed-off-by: Artem Chernyshev --- output/outdbg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/output/outdbg.c b/output/outdbg.c index e7a9a4e5e..52d7f337a 100644 --- a/output/outdbg.c +++ b/output/outdbg.c @@ -409,7 +409,8 @@ dbg_pragma(const struct pragma *pragma) } static const char * const types[] = { - "unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte" + "unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte", + "oword", "yword", "zword" }; static void dbgdbg_init(void) {