Author serhiy.storchaka
Recipients BTaskaya, ghaering, serhiy.storchaka
Date 2020-08-29.13:05:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598706308.83.0.197807583291.issue41662@roundup.psfhosted.org>
In-reply-to
Content
There are few bugs in the code for binding parameters specified in the sqlite3 module:

1. If argument "parameters" is a list, PyList_GET_ITEM() is called in a loop, but the size of the list is read only once before loop. Since the list can be changed during iteration, it can cause reading past the end of the list.

2. If argument "parameters" is a custom sequence, all exceptions raised in __len__() (including KeybordInterrupt) are overridden by a ProgrammingError.
History
Date User Action Args
2020-08-29 13:05:08serhiy.storchakasetrecipients: + serhiy.storchaka, ghaering, BTaskaya
2020-08-29 13:05:08serhiy.storchakasetmessageid: <1598706308.83.0.197807583291.issue41662@roundup.psfhosted.org>
2020-08-29 13:05:08serhiy.storchakalinkissue41662 messages
2020-08-29 13:05:08serhiy.storchakacreate