summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-02-02 02:03:55 -0600
committerGitHub <noreply@github.com>2024-02-02 19:03:55 +1100
commit255c6b850a31fc3d376f453e1127e1f019496d87 (patch)
tree6c4ef482d97ff043353428b180bd7a5ce64a82fa /src/code
parent5684c793126f23ea87597fceea0420c9245a1505 (diff)
Document OoB in z_message_nes (#1537)
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_message_nes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/code/z_message_nes.c b/src/code/z_message_nes.c
index 108146d3a..d33de3ced 100644
--- a/src/code/z_message_nes.c
+++ b/src/code/z_message_nes.c
@@ -1626,6 +1626,7 @@ void Message_DecodeNES(PlayState* play) {
Message_LoadPluralRupeesNES(play, &decodedBufPos, &charTexIndex, &spA4);
} else if (curChar == MESSAGE_BOMBER_CODE) {
for (i = 0; i < 5; i++) {
+ //! @bug OoB read & write for i == 4, digits array is only 4 elements
digits[i] = gSaveContext.save.saveInfo.bomberCode[i];
Font_LoadCharNES(play, digits[i] + '0', charTexIndex);
charTexIndex += FONT_CHAR_TEX_SIZE;