This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.7.3 Crash on msilib actions
Type: crash Stage: resolved
Components: Windows Versions: Python 3.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: UltraLutra, iritkatriel, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2020-02-06 16:26 by UltraLutra, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg361495 - (view) Author: UltraLutra (UltraLutra) Date: 2020-02-06 16:26
Hello,

I'm trying to read MSI files using msilib.
Some files make python crash on Record.GetString of a specific cell.
Attached is one of the files that causes the crash, and this is the code that is causing it to crash:
db = msilib.OpenDatabase('6bcd682374529631be60819d20a71d9d40c67bf0b1909faa459298eda998f833', msilib.MSIDBOPEN_READONLY)
query = db.OpenView(f'SELECT * FROM Registry')
query.Execute(None)
for i in range(6):
    record = query.Fetch()
record.GetString(5)

The crash seems to be by trying to read the Value columns of the last row in the Registry table.

file: https://github.com/AsafEitani/msilib_crash
msg401289 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-09-07 14:34
I personally don't feel like downloading a binary from b.p.o and opening it on my machine.

Can you provide more information about the issue? For instance, what do you mean by crash? Do you have any stack trace or other output?

What is the value in the registry table that it is trying to read and failing?
msg401347 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-09-07 22:10
Yep, this is malware. Don't download the file.

If this is a CPython issue that you want fixed, please provide a script to generate the MSI.
History
Date User Action Args
2022-04-11 14:59:26adminsetgithub: 83751
2021-09-07 22:10:30steve.dowersetstatus: open -> closed
resolution: rejected
messages: + msg401347

stage: resolved
2021-09-07 14:34:38iritkatrielsetnosy: + iritkatriel
messages: + msg401289
2020-02-06 16:26:37UltraLutracreate