Skip to content

Commit 01fcc68

Browse files
committed
fix: fix pre commit error
1 parent 4214d56 commit 01fcc68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Fix use-after-free in :class:`bytearray` search-like methods (:func:`~bytearray.find`, :func:`~bytearray.count`, :func:`~bytearray.index`, :func:`~bytearray.rindex`, and :func:`~bytearray.rfind`) by marking the storage as
2-
exported which causes reallocation attempts to raise :exc:`BufferError`. For :func:`~bytearray.contains`, :func:`~bytearray.split`, and :func:`~bytearray.rsplit` the :ref:`buffer protocol <bufferobjects>` is used for this.
1+
Fix use-after-free in :class:`bytearray` search-like methods (:func:`~bytearray.find`, :func:`~bytearray.count`, :func:`~bytearray.index`, :func:`~bytearray.rindex`, and :func:`~bytearray.rfind`) by marking the storage as exported which causes reallocation attempts to raise :exc:`BufferError`. For :func:`~bytearray.contains`, :func:`~bytearray.split`, and :func:`~bytearray.rsplit` the :ref:`buffer protocol <bufferobjects>` is used for this.

0 commit comments

Comments
 (0)