Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526418 - dev-libs/libdnet - PyObject_AsReadBuffer api changed leading to segfaults in ip_cksum_add
Summary: dev-libs/libdnet - PyObject_AsReadBuffer api changed leading to segfaults in ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-10-22 07:22 UTC by bugs
Modified: 2014-10-22 08:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
PyObject_AsReadBuffer api fix (libdnet-1.12.pyrex2.7.patch,404.62 KB, patch)
2014-10-22 07:22 UTC, bugs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bugs 2014-10-22 07:22:44 UTC
Created attachment 387188 [details, diff]
PyObject_AsReadBuffer api fix

PyObject_AsReadBuffer api changed to use Py_ssize_t instead of int for length argument. ignoring this leads to segfaults, using the ip_cksum_add method. this patch fixes the python api used in dnet.pyx as well as replacing the 'type' argument names with 'type_' as the first is now prohibited in pyrex. a newly generated dnet.c is also included.