From b7c41567892a7b3bd3782128926c6a223658a034 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Mar 2026 22:43:57 +0100 Subject: Wrap around the saving of the last allocated bullet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don't do this, then it's possible to incur into a buffer overflow as the last allocated index is set to the next (out of buffer) position. Whenever we start over on this function, then it will compare for a good bullet on this position, and if it's not exactly $FF, then it will allocate it without problems. Signed-off-by: Miquel Sabaté Solà --- .nasm/segments.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.nasm') diff --git a/.nasm/segments.txt b/.nasm/segments.txt index 63a1a29..3c85c8f 100644 --- a/.nasm/segments.txt +++ b/.nasm/segments.txt @@ -1,4 +1,4 @@ - HEADER: 16/16 (100%) -- ROM0: 5461/32762 (16.67%) +- ROM0: 5467/32762 (16.69%) - ROMV: 6/6 (100%) - ROM2: 8192/8192 (100%) -- cgit v1.2.3