[issue42924] bytearray_repeat copies from ob_bytes instead of ob_start

2021-01-13 Thread tholl
Change by tholl : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue42924> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42924] bytearray_repeat copies from ob_bytes instead of ob_start

2021-01-13 Thread tholl
New submission from tholl : `bytearray_repeat` uses `ob_bytes` rather than `ob_start` as its source data for copying, leading to incorrect results in some edge cases where the two are distinct. It should probably use `PyByteArray_AS_STRING(self)` just like `bytearray_irepeat` and basically

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-10-31 Thread tholl
tholl added the comment: I probably should have done this earlier, but here's a small test case that reproduces the issue. The assert fails in vanilla Python 3.8, but passes with the patch. -- type: -> behavior Added file: https://bugs.python.org/file48689/audit

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-10-28 Thread tholl
New submission from tholl : The dlsym operation generally (e.g. when done through a ctypes.CDLL object) triggers the "ctypes.dlsym" audit event. However, using _ctypes.dlsym directly does not trigger this event. This appears to be an oversight, given that _ctypes.dlopen *does* t