Skip to content

Commit

Permalink
#1886: fix memcpy overflow
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19707 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 25, 2018
1 parent d841576 commit d8901cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gtk3/cairo_workaround.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def set_image_surface_data(object image_surface, rgb_format, object pixel_data,
for y in range(height):
src = (<uintptr_t> cbuf) + y*stride
dst = (<uintptr_t> data) + y*istride
memcpy(<void*> dst, <void*> src, stride)
memcpy(<void*> dst, <void*> src, istride)
cairo_surface_mark_dirty(surface)
return
else:
Expand Down

0 comments on commit d8901cd

Please sign in to comment.