From 54100386e6d918d56500dbd0b84773e349e1de49 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 30 Aug 2022 11:57:39 +0300 Subject: [PATCH] pysvp64dis: stop interation upon empty suffix --- src/openpower/sv/trans/pysvp64dis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index f915abbf..39d63ef5 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -37,6 +37,7 @@ def load(ifile, byteorder, **_): length = len(suffix) if length == 0: yield prefix + return elif length < 4: raise IOError(suffix) suffix = _WordInstruction.integer(value=suffix, byteorder=byteorder) -- 2.30.2