From 31ff27f426a8019ac4e99cdb978da33f05e84bf9 Mon Sep 17 00:00:00 2001 From: Burton Samograd Date: Sat, 26 Sep 2015 13:18:15 -0600 Subject: [PATCH] Bound check for bad nocks. --- noun/nock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/noun/nock.c b/noun/nock.c index af068615e..9fc771dd3 100644 --- a/noun/nock.c +++ b/noun/nock.c @@ -139,6 +139,10 @@ _n_nock_on(u3_noun bus, u3_noun fol) &&l6, &&l7, &&l8, &&l9, &&l10, &&l11 }; + if(hib > 11) { + return u3m_bail(c3__exit); + } + goto *lut[hib]; {