Message361495
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 |
|
Date |
User |
Action |
Args |
2020-02-06 16:26:37 | UltraLutra | set | recipients:
+ UltraLutra, paul.moore, tim.golden, zach.ware, steve.dower |
2020-02-06 16:26:37 | UltraLutra | set | messageid: <1581006397.33.0.114674633699.issue39570@roundup.psfhosted.org> |
2020-02-06 16:26:36 | UltraLutra | link | issue39570 messages |
2020-02-06 16:26:36 | UltraLutra | create | |
|