-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null pointer dereference with corrupt database file in MODE_MMAP_EXT #58
Comments
oschwald
added a commit
to maxmind/MaxMind-DB
that referenced
this issue
May 4, 2020
oschwald
added a commit
that referenced
this issue
May 4, 2020
Thanks so much for reporting this. I've fixed in in #59 and I have added |
oschwald
added a commit
that referenced
this issue
May 4, 2020
horgh
added a commit
that referenced
this issue
May 4, 2020
Fix segfault on invalid UTF-8. Closes #58.
1.5.3 was released with this fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux, python 3.7, maxminddb 1.5.2, libmaxminddb 1.4.2.
Given the corrupt database files np00.gz or np01.gz (uncompressed obviously)
And the example code:
this will produce a null pointer dereference, in the first case when
Reader_get_with_prefix_len
tries toPy_DECREF
a nullrecord
. In the second case,from_map
tries toPyDict_SetItem
atmaxminddb.c:538
with a nullkey
, leading to a read from0x8
.The text was updated successfully, but these errors were encountered: