-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error at or near `JUMP_FORWARD' instruction #420
Comments
Stripped the function down to this minimal reproducer(with python 3.6): ERRPR_CODE_DEFINE = {}
INFORMATION = {}
self = {}
try:
print()
except Exception:
var1 = 0
var2 = 1
if var1 or var2:
times = 1
while times != False and self.scanner.is_open():
try:
try:
print()
except Exception:
print()
out = 0
count = 1
if out == 1:
break
elif out == 2:
count += 1
if times == 3:
self.func.emit({})
break
else:
continue
if out == 3 or out == b'':
if self.times == 3:
break
count += 1
if count == 3:
count = 0
if out == 4:
self.func.emit(ERRPR_CODE_DEFINE.ReceiedError())
else:
print()
break
continue
else:
count = 0
except Exception:
print("upper exception")
else:
try:
print("jump forward")
while True:
out = self.func.read(count)
if out == b'':
self.func.emit(ERRPR_CODE_DEFINE.ReceiedError())
break
continue
imagedata = out[0]
if imagedata == b'\x05':
self.func.emit(INFORMATION.UnsupportedImage())
break
continue
if imagedata == b'\x15':
self.func.emit(INFORMATION.NoneImage())
break
continue
if out[1] == False:
start_index = imagedata.find(b'BM6')
self.func.emit(imagedata[start_index:], False)
continue
(imagedata, all_code) = imagedata
self.func.emit({})
self.func.emit({})
self.func.emit({})
break
except Exception:
pass |
Thanks. I am out of town right now, and will be out of town for a while. When I get back I will put this on the queue of things to look at. I suspect though this can be simplified a great deal. For example, we we really need to have 3 Once the code is stripped to the bare minimum I suspect what is wrong will by crystal clear. |
My attempts to further simplify along these lines did not really get anywhere beyond this.
I was assuming the same, but the triggering conditions for this bug are non-obvious to me as removing random code that does apparently nothing can prevent the bug from being hit. |
In the future I will write a guide to make it easier for you help me to help you ;-) |
Description
This file is triggering the below error in addition to the one in #417 when using
--fragments
.SuperThread.pyc.zip
How to Reproduce
Environment
The text was updated successfully, but these errors were encountered: