From 58e289d1fcf44964189b27ab0131a900621c42ac Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 23 Dec 2020 12:21:35 +0000 Subject: [PATCH] nga-python: raise IndexError on invalid fetch address (#31) FossilOrigin-Name: 40e85d0ae3d2223e1b465f782f8e4c4b93bc7c1ffad6615f569ebc6a357482e1 --- vm/nga-python/retro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/nga-python/retro.py b/vm/nga-python/retro.py index 58af55d..70e3a5a 100644 --- a/vm/nga-python/retro.py +++ b/vm/nga-python/retro.py @@ -286,7 +286,7 @@ class Retro: elif target == -5: self.stack.push(170141183460469231731687303715884105727) else: - self.stack.push(0) + raise IndexError def i_store(self): mi = self.stack.pop()