Closed rgom closed 5 years ago
Note 1: untested. I have just submitted a PR against fork solution. I'm not even an author of the fix. Note 2: the commit message would need some love, presumably (refer to bug? other fork?)
Thanks for this!
It would be good if we could have a unittest for this to ensure it's fixed.
This is superseeded by: https://github.com/pynetwork/pypcap/pull/80
Use PyString_FromStringAndSize instead of PyBuffer_FromMemory to make sure packets buffers are not unintentionally shared.