Message376062
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. |
|
Date |
User |
Action |
Args |
2020-08-29 13:05:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ghaering, BTaskaya |
2020-08-29 13:05:08 | serhiy.storchaka | set | messageid: <1598706308.83.0.197807583291.issue41662@roundup.psfhosted.org> |
2020-08-29 13:05:08 | serhiy.storchaka | link | issue41662 messages |
2020-08-29 13:05:08 | serhiy.storchaka | create | |
|