[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
print(db.get('missing-key'))
```

--
files: 0001-Fix-null-pointer-dereference-in-dbm.ndbm-get.patch
keywords: patch
messages: 304977
nosy: tmiasko
priority: normal
severity: normal
status: open
title: Null pointer dereference in ndb.ndbm get when used with a default value.
type: crash
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: 
https://bugs.python.org/file47236/0001-Fix-null-pointer-dereference-in-dbm.ndbm-get.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com