[New-bugs-announce] [issue39570] Python 3.7.3 Crash on msilib actions

UltraLutra report at bugs.python.org
Thu Feb 6 11:26:37 EST 2020


New submission from UltraLutra <eitaniasaf at gmail.com>:

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

----------
components: Windows
messages: 361495
nosy: UltraLutra, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python 3.7.3 Crash on msilib actions
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39570>
_______________________________________


More information about the New-bugs-announce mailing list