Skip to content

Commit b98366f

Browse files
authored
Switch to memmove as input buffer can overlap (libvips#2476)
1 parent bd8fad8 commit b98366f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvips/foreign/jxlload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ vips_foreign_load_jxl_fill_input( VipsForeignLoadJxl *jxl,
208208
INPUT_BUFFER_SIZE - bytes_remaining );
209209
#endif /*DEBUG_VERBOSE*/
210210

211-
memcpy( jxl->input_buffer,
211+
memmove( jxl->input_buffer,
212212
jxl->input_buffer + jxl->bytes_in_buffer - bytes_remaining,
213213
bytes_remaining );
214214
bytes_read = vips_source_read( jxl->source,

0 commit comments

Comments
 (0)