[Spice-devel] [PATCH v3 09/51] codegen: Check we don't pop too much indexes

Frediano Ziglio fziglio at redhat.com
Tue Jul 21 09:45:39 PDT 2015


---
 python_modules/codegen.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python_modules/codegen.py b/python_modules/codegen.py
index 02ffdb9..c470988 100644
--- a/python_modules/codegen.py
+++ b/python_modules/codegen.py
@@ -357,6 +357,7 @@ class CodeWriter:
         return index
 
     def push_index(self):
+        assert self.current_index > 0
         self.current_index = self.current_index - 1
 
     class Index:
-- 
2.1.0



More information about the Spice-devel mailing list