[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9aa60245a0ff929e528b4521da7af20dacd4145b by Serhiy Storchaka in branch '2.7': [2.7] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095). (#3976)

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3952 ___ Python tracker ___ ___

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c923da188bc055e4f3001a6daf1caf54f2b10e40 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) (#3973)

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +3951 ___ Python tracker ___

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset de072100775cc29e6cd93a75466cecbd1086f258 by Serhiy Storchaka in branch 'master': bpo-30058: Fixed buffer overflow in select.kqueue.control(). (#1095)

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested it on FreeBSD, found and fixed one bug. -- assignee: -> serhiy.storchaka versions: -Python 3.5 ___ Python tracker

[issue30058] Buffer overflow in kqueue.control()

2017-04-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch presumably fixes the issue. But since this is *BSD specific I can't even check that it is compiled. -- stage: -> patch review ___ Python tracker

[issue30058] Buffer overflow in kqueue.control()

2017-04-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1237 ___ Python tracker ___ ___

[issue30058] Buffer overflow in kqueue.control()

2017-04-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The first parameter of kqueue.control() is documented as an iterable. But actually it should have a length. kqueue.control() uses PyObject_Size() for allocating an array and PyObject_GetIter()+PyIter_Next() for iterating kevent objects and filling the