buf_copy(): Fail if there's no data to write or nothing to do
authorFabian Keil <fk@fabiankeil.de>
Sat, 6 Feb 2021 10:52:37 +0000 (11:52 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Feb 2021 16:30:16 +0000 (17:30 +0100)
commit647353d3e6621b32696a08d66656b7c6bb8fb0a3
treeceb84583c632b5e26ff5452e24a707073a64854e
parent8456a1338a6ee718e783ff99abc7933a2fb2c1d2
buf_copy(): Fail if there's no data to write or nothing to do

Prevents undefined behaviour "applying zero offset to null pointer".

Reported by: Joshua Rogers (Opera)
deanimate.c