uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 6799b5f78e99c416909f4aa215f41ac84a0c459e
parent 540fd70b9bb9b4e704d170e8ffe1b6214cd79a73
Author: neauoire <aliceffekt@gmail.com>
Date:   Sat, 23 Oct 2021 08:48:11 -0700

Warn for out of bounds

Diffstat:
Msrc/uxnasm.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -110,6 +110,7 @@ static void pushbyte(Uint8 b, int lit) { if(lit) pushbyte(findopcode("LIT"), 0); + if(p.ptr > LENGTH) fprintf(stderr, "--- Out of bounds(%04x:%02x)\n", p.ptr, b); p.data[p.ptr++] = b; p.length = p.ptr; }