소스 검색

Check for invalid XID

Marek Marczykowski 11 년 전
부모
커밋
1fda0502ab
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core-modules/000QubesVm.py

+ 2 - 0
core-modules/000QubesVm.py

@@ -907,6 +907,8 @@ class QubesVm(object):
         if xid is None:
             xid = self.xid
 
+        assert xid >= 0, "Invalid XID value"
+
         domain_path = xs.get_domain_path(xid)
 
         # Set Xen Store entires with VM networking info: