Skip to content

Commit 1e457b3

Browse files
committed
Possible SEGFAULT fix with some stride values.
1 parent 313ac76 commit 1e457b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pillow_heif/private.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def copy_image_data(dest_data, src_data, dest_stride: int, source_stride: int, h
5959
else:
6060
p_source = ffi.from_buffer("uint8_t*", src_data)
6161
for i in range(height):
62-
ffi.memmove(dest_data + dest_stride * i, p_source + source_stride * i, dest_stride)
62+
ffi.memmove(dest_data + dest_stride * i, p_source + source_stride * i, source_stride)
6363

6464

6565
def read_color_profile(handle) -> dict:

0 commit comments

Comments
 (0)