From bdebd5f1f5a727a5c84bd54835b8156b493896f2 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 3 Jan 2021 02:35:29 +0100 Subject: [PATCH] OOB in error.cpp (#1847) --- Source/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/error.cpp b/Source/error.cpp index 526c6f5c1..e206a4f1f 100644 --- a/Source/error.cpp +++ b/Source/error.cpp @@ -80,7 +80,7 @@ void InitDiabloMsg(char e) return; } - msgtable[msgcnt] = e; + msgtable[msgcnt] = e; // BUGFIX: missing out-of-bounds check if (msgcnt < (BYTE)sizeof(msgtable)) msgcnt++;