Message304977
| Author | tmiasko |
|---|---|
| Recipients | tmiasko |
| Date | 2017-10-25.10:25:18 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1508927118.96.0.213398074469.issue31868@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Using ndb.ndbm get when key is missing and default value has to be returned
results in invocation of Py_INCREF on null pointer. Test case to reproduce the issue:
```
import dbm.ndbm
with dbm.ndbm.open('db', 'n') as db:
print(db.get('missing-key'))
``` |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-10-25 10:25:19 | tmiasko | set | recipients: + tmiasko |
| 2017-10-25 10:25:18 | tmiasko | set | messageid: <1508927118.96.0.213398074469.issue31868@psf.upfronthosting.co.za> |
| 2017-10-25 10:25:18 | tmiasko | link | issue31868 messages |
| 2017-10-25 10:25:18 | tmiasko | create | |