]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Use memmove instead of memcpy in rrd_write() to fix undefined behaviour 693/head
authorNiko Tyni <ntyni@debian.org>
Sun, 20 Dec 2015 07:49:14 +0000 (09:49 +0200)
committerNiko Tyni <ntyni@debian.org>
Sun, 20 Dec 2015 07:52:39 +0000 (09:52 +0200)
commitc0ac2ba5afeedd535367d78bf39cbe58e968a345
treea0c4ce1a621099456d76b8d8e687050994c37f43
parent8eedf7065c253e435d3ac37d95fff87a71aa1946
Use memmove instead of memcpy in rrd_write() to fix undefined behaviour

At least rrdtune ends up calling rrd_write() with the same memory
area for the source and the destination, causing undefined behaviour
that has been observed to actually break on the mips architecture.

Bug-Debian: https://bugs.debian.org/805391
Bug: https://github.com/oetiker/rrdtool-1.x/issues/688
src/rrd_open.c