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.

Author UltraLutra
Recipients UltraLutra, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-02-06.16:26:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581006397.33.0.114674633699.issue39570@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-02-06 16:26:37UltraLutrasetrecipients: + UltraLutra, paul.moore, tim.golden, zach.ware, steve.dower
2020-02-06 16:26:37UltraLutrasetmessageid: <1581006397.33.0.114674633699.issue39570@roundup.psfhosted.org>
2020-02-06 16:26:36UltraLutralinkissue39570 messages
2020-02-06 16:26:36UltraLutracreate