about summary refs log tree commit diff stats
path: root/313index-bounds-check.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-07 21:04:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-07 21:04:45 -0700
commit888b4cd8eabff44ad10954f26bd4df4497e28617 (patch)
tree6e890232896f4cfdaa51fad4bcd25fd981b0ef2a /313index-bounds-check.subx
parent61a68452ae84df936e1861e65a331959643ae016 (diff)
downloadmu-888b4cd8eabff44ad10954f26bd4df4497e28617.tar.gz
always check for null in 'index' instructions
Diffstat (limited to '313index-bounds-check.subx')
-rw-r--r--313index-bounds-check.subx3
1 files changed, 3 insertions, 0 deletions
diff --git a/313index-bounds-check.subx b/313index-bounds-check.subx
index de9642fd..4bc8e12e 100644
--- a/313index-bounds-check.subx
+++ b/313index-bounds-check.subx
@@ -58,5 +58,8 @@ __check-mu-array-bounds:overflow:
     }
     # never gets here
 
+__mu-abort-null-index-base-address:
+    (abort "null address in 'index'")
+
 __mu-abort-null-get-base-address:
     (abort "null address in 'get'")