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
unpack requires a buffer of 8 bytes #1
Comments
can you tell me the extension of the file that make the problem |
it's an udo file, which came out of the pbd_dump.py command. |
the error occur at line which read the group name (at the beginning of reading operation) temp = Lookup(file)
if len(temp) > 0:
self.group_name = temp[0].name and according to the error the file is end! |
Greetings. I am facing the same issue when I use this to decompile a fun file. Thank you. |
ok send and I will test |
That would be great if you can help. I will share it via Google Drive.
Thank you so much!
Bob Scheff
Network Administrator / Programmer
***@***.***
*Toll Free: 877-327-6385* | *Fax: 715-201-4811*
DCS Netlink
101 E. South Street
Rice Lake, WI 54868
*Making I.T. Easy …as it should be!*
…On Tue, Aug 23, 2022 at 4:01 PM Samy Sultan ***@***.***> wrote:
ok send and I will test
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2S6SXTCSPEUJZPT3Z3VDT3V2U33RANCNFSM5KEVRDZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I find the problem by comparing your file and another file with me
and my file
as you see the difference is as follow: the 2 item 4 + 4 bytes difference make the error |
what I will do to solve the problem is hardcode values like this if self.h1 == 0x14f:
c_date_id, m_date_id, self.h5 = struct.unpack("<QQI", file.read(0x14))
else:
c_date_id, m_date_id, self.h5 = struct.unpack("<III", file.read(0xC)) |
now this code will raise exception: if class_type == 0x4000:
if pcode.args[1] not in (0x40CF, 0x40D0):
raise Exception("unknown module no.: {}".format(hex(pcode.args[1])))
this means your power builder virtual machine is more updated that what I have |
I fix the package you can test it now |
Your update has resolved my issue! Thank you! |
on command
python3 analyse_folder.py <output-folder-of-pbd_dump>
I cannot share the file that I am investigating, but I am investigating this issue.
The text was updated successfully, but these errors were encountered: