Dolda2000 GitWeb
/
pycfml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188fa29
)
Handle classes with nil superclass.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 10 Apr 2023 16:01:47 +0000
(18:01 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 10 Apr 2023 16:01:47 +0000
(18:01 +0200)
Ie. java.lang.Object.
classfile/file.py
patch
|
blob
|
blame
|
history
diff --git
a/classfile/file.py
b/classfile/file.py
index
d361b47
..
819c6a4
100644
(file)
--- a/
classfile/file.py
+++ b/
classfile/file.py
@@
-637,7
+637,7
@@
class classfile(object):
self.super = buf.uint16()
if not self.checkcp(self.this, classref):
raise binfmt.fmterror("invalid class name reference")
- if not self.checkcp(self.super, classref):
+ if not self.checkcp(self.super, classref)
and self.cp[self.super] is not None
:
raise binfmt.fmterror("invalid super-class reference")
iflen = buf.uint16()
while len(self.ifaces) < iflen: