Summary: | dev-libs/libdnet - PyObject_AsReadBuffer api changed leading to segfaults in ip_cksum_add | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | bugs |
Component: | [OLD] Library | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | bugs |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | http://code.google.com/p/libdnet/issues/detail?id=33 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | PyObject_AsReadBuffer api fix |
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.