Browse Source

OOB in error.cpp (#1847)

pull/973/head
Anders Jenbo 5 years ago committed by GitHub
parent
commit
bdebd5f1f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/error.cpp

2
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++;

Loading…
Cancel
Save