[issue31868] Null pointer dereference in ndb.ndbm get when used with a default value.

2018-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forgot about this issue and have fixed this bug in a new issue33383. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Crash in the get() method a single argument in dbm.ndbm

[issue31868] Null pointer dereference in ndb.ndbm get when used with a default value.

2017-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please create a pull request on GitHub Tomasz? -- nosy: +serhiy.storchaka ___ Python tracker

[issue31868] Null pointer dereference in ndb.ndbm get when used with a default value.

2017-10-25 Thread Tomasz Miąsko
New submission from Tomasz Miąsko : 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: